Staging: comedi: addi-data: don't overwrite name for request_irq()
authorIan Abbott <abbotti@mev.co.uk>
Wed, 19 May 2010 14:11:58 +0000 (15:11 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 4 Jun 2010 20:38:52 +0000 (13:38 -0700)
commitb2e68b00d5d3698c228f549c02f4f79305d2b270
tree9fa6e8f05d4ef9d7bb308a2b2e1b2ca89db3a471
parent6d8b0f5be5108f6a3fc922ca4acfbf10e14d6cd0
Staging: comedi: addi-data: don't overwrite name for request_irq()

The Addi-Data PCI drivers for Comedi use sprintf() in their comedi
"attach" routine to construct a string to pass as the name in the call
to request_irq().  All calls to "attach" routine share the same static
buffer for this name, but the contents will differ on each call
(including the comedi device number and the comedi board name).  This
changes the name displayed in /proc/interrupts for previous calls to
request_irq() using the same buffer.  Just use the board name instead;
it has slightly less information (no comedi device number) but at least
it doesn't change over the lifetime of the IRQ handler.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/drivers/addi-data/addi_common.c