]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: comedi: ni_atmio: convert printk to dev_err in ni_getboardtype()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Fri, 18 Jul 2014 20:29:55 +0000 (13:29 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jul 2014 23:08:01 +0000 (16:08 -0700)
Convert these printk() messages 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_atmio.c

index 8af5a0f19d7214760689167632770e569ac55c5d..9ca8a8262b7e1b0d482f897ba7cc5cb963c60337 100644 (file)
@@ -288,11 +288,13 @@ static int ni_getboardtype(struct comedi_device *dev)
 
        }
        if (device_id == 255)
-               printk(" can't find board\n");
+               dev_err(dev->class_dev, "can't find board\n");
         else if (device_id == 0)
-               printk(" EEPROM read error (?) or device not found\n");
+               dev_err(dev->class_dev,
+                       "EEPROM read error (?) or device not found\n");
         else
-               printk(" unknown device ID %d -- contact author\n", device_id);
+               dev_err(dev->class_dev,
+                       "unknown device ID %d -- contact author\n", device_id);
 
        return -1;
 }