staging: comedi: dmm32at: convert a printk(KERN_ERR to a dev->err()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 26 Nov 2013 23:41:47 +0000 (16:41 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Dec 2013 17:20:20 +0000 (09:20 -0800)
Convert this printk message to a dev_err() message.

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/dmm32at.c

index 1831f3288ca823f438008610dbd0aad8414dc046..174735d37b510d9858dd1815c56641e7cb4c4b42 100644 (file)
@@ -710,7 +710,7 @@ static int dmm32at_attach(struct comedi_device *dev,
 
        if ((ailo != 0x00) || (aihi != 0x1f) || (fifostat != 0x80) ||
            (aistat != 0x60 || (intstat != 0x00) || airback != 0x0c)) {
-               printk(KERN_ERR "dmmat32: board detection failed\n");
+               dev_err(dev->class_dev, "board detection failed\n");
                return -EIO;
        }