staging: comedi: dt282x: convert dt282x_ao_inttrig() messages
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 26 Nov 2013 23:42:06 +0000 (16:42 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Dec 2013 17:20:21 +0000 (09:20 -0800)
Convert the messages in this function 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/dt282x.c

index c8df18ae40844afa38c7507e1b49ff5e724fe5bf..a850e1d16aee9a042f30dbbfd42bf0d4771bf5b4 100644 (file)
@@ -885,7 +885,7 @@ static int dt282x_ao_inttrig(struct comedi_device *dev,
        size = cfc_read_array_from_buffer(s, devpriv->dma[0].buf,
                                          devpriv->dma_maxsize);
        if (size == 0) {
-               printk(KERN_ERR "dt282x: AO underrun\n");
+               dev_err(dev->class_dev, "AO underrun\n");
                return -EPIPE;
        }
        prep_ao_dma(dev, 0, size);
@@ -893,7 +893,7 @@ static int dt282x_ao_inttrig(struct comedi_device *dev,
        size = cfc_read_array_from_buffer(s, devpriv->dma[1].buf,
                                          devpriv->dma_maxsize);
        if (size == 0) {
-               printk(KERN_ERR "dt282x: AO underrun\n");
+               dev_err(dev->class_dev, "AO underrun\n");
                return -EPIPE;
        }
        prep_ao_dma(dev, 1, size);