staging: comedi: ni_at_a2150: convert printk to dev_err
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Fri, 18 Jul 2014 20:29:56 +0000 (13:29 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jul 2014 23:08:01 +0000 (16:08 -0700)
Convert the printk() message to dev_err().

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>
drivers/staging/comedi/drivers/ni_at_a2150.c

index 86c05e382d09c5858cde0bcd27d1b4ac4a2d5d5d..c0ac8fd6ecab5490cea057ab888134fba4ad8143 100644 (file)
@@ -785,8 +785,8 @@ static int a2150_attach(struct comedi_device *dev, struct comedi_devconfig *it)
                udelay(1000);
        }
        if (i == timeout) {
-               printk
-                   (" timed out waiting for offset calibration to complete\n");
+               dev_err(dev->class_dev,
+                       "timed out waiting for offset calibration to complete\n");
                return -ETIME;
        }
        devpriv->config_bits |= ENABLE0_BIT | ENABLE1_BIT;