diff options
author | H Hartley Sweeten <hsweeten@visionengravers.com> | 2014-05-29 13:35:08 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-06-18 17:45:14 -0400 |
commit | 64b99c4c40845dcc96a154e9014505d14ca9a283 (patch) | |
tree | 87efece83d1fc0c58ba99d4cb326226c806b0c2a /drivers | |
parent | 55e51bad3559ed0166be3dd3c8b236204cc730b4 (diff) |
staging: comedi: adl_pci9111: remove PCI9111_DRIVER_NAME define
This define is only used in a comedi_error() message. The addition of
the driver name to the message is not necessary. Remove the define.
For aesthetics, convert the comedi_error() into a dev_dbg().
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/comedi/drivers/adl_pci9111.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/comedi/drivers/adl_pci9111.c b/drivers/staging/comedi/drivers/adl_pci9111.c index 584fd57ecb70..d005faadde48 100644 --- a/drivers/staging/comedi/drivers/adl_pci9111.c +++ b/drivers/staging/comedi/drivers/adl_pci9111.c | |||
@@ -75,7 +75,6 @@ TODO: | |||
75 | #include "plx9052.h" | 75 | #include "plx9052.h" |
76 | #include "comedi_fc.h" | 76 | #include "comedi_fc.h" |
77 | 77 | ||
78 | #define PCI9111_DRIVER_NAME "adl_pci9111" | ||
79 | #define PCI9111_HR_DEVICE_ID 0x9111 | 78 | #define PCI9111_HR_DEVICE_ID 0x9111 |
80 | 79 | ||
81 | #define PCI9111_FIFO_HALF_SIZE 512 | 80 | #define PCI9111_FIFO_HALF_SIZE 512 |
@@ -630,7 +629,7 @@ static irqreturn_t pci9111_interrupt(int irq, void *p_device) | |||
630 | /* '0' means FIFO is full, data may have been lost */ | 629 | /* '0' means FIFO is full, data may have been lost */ |
631 | if (!(status & PCI9111_AI_STAT_FF_FF)) { | 630 | if (!(status & PCI9111_AI_STAT_FF_FF)) { |
632 | spin_unlock_irqrestore(&dev->spinlock, irq_flags); | 631 | spin_unlock_irqrestore(&dev->spinlock, irq_flags); |
633 | comedi_error(dev, PCI9111_DRIVER_NAME " fifo overflow"); | 632 | dev_dbg(dev->class_dev, "fifo overflow\n"); |
634 | outb(0, dev->iobase + PCI9111_INT_CLR_REG); | 633 | outb(0, dev->iobase + PCI9111_INT_CLR_REG); |
635 | async->events |= COMEDI_CB_ERROR | COMEDI_CB_EOA; | 634 | async->events |= COMEDI_CB_ERROR | COMEDI_CB_EOA; |
636 | cfc_handle_events(dev, s); | 635 | cfc_handle_events(dev, s); |