staging: comedi: gsc_hpdi: convert comedi_error() messages to dev_err()
authorH Hartley Sweeten <hartleys@visionengravers.com>
Thu, 13 Mar 2014 21:16:32 +0000 (14:16 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Mar 2014 21:19:51 +0000 (14:19 -0700)
For aesthetics, convert the comedi_error() messages to dev_err().

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/gsc_hpdi.c

index 2db02b435dfedf114ef315b2205abd2f9c0228ae..950516bbb6640535497a5edaf9839cb9de36c333 100644 (file)
@@ -263,12 +263,12 @@ static irqreturn_t gsc_hpdi_interrupt(int irq, void *d)
        }
 
        if (hpdi_board_status & RX_OVERRUN_BIT) {
-               comedi_error(dev, "rx fifo overrun");
+               dev_err(dev->class_dev, "rx fifo overrun\n");
                async->events |= COMEDI_CB_EOA | COMEDI_CB_ERROR;
        }
 
        if (hpdi_board_status & RX_UNDERRUN_BIT) {
-               comedi_error(dev, "rx fifo underrun");
+               dev_err(dev->class_dev, "rx fifo underrun\n");
                async->events |= COMEDI_CB_EOA | COMEDI_CB_ERROR;
        }