staging/comedi: Use dev_ printks in drivers/vmk80xx.c
authorYAMANE Toshiaki <yamanetoshi@gmail.com>
Wed, 24 Oct 2012 05:21:51 +0000 (14:21 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Oct 2012 22:10:51 +0000 (15:10 -0700)
fixed below checkpatch warning.
- Prefer netdev_info(netdev, ... then dev_info(dev, ... then pr_info(...  to printk(KERN_INFO ...

Signed-off-by: YAMANE Toshiaki <yamanetoshi@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/vmk80xx.c

index df277aa591bbae2b7fbe29899ca0c2fcd2d21461..366490776c5a48ac9974bff8066a380796414438 100644 (file)
@@ -1371,12 +1371,11 @@ static int vmk80xx_usb_probe(struct usb_interface *intf,
 
        if (dev->board.model == VMK8061_MODEL) {
                vmk80xx_read_eeprom(dev, IC3_VERSION);
-               printk(KERN_INFO "comedi#: vmk80xx: %s\n", dev->fw.ic3_vers);
+               dev_info(&intf->dev, "%s\n", dev->fw.ic3_vers);
 
                if (vmk80xx_check_data_link(dev)) {
                        vmk80xx_read_eeprom(dev, IC6_VERSION);
-                       printk(KERN_INFO "comedi#: vmk80xx: %s\n",
-                              dev->fw.ic6_vers);
+                       dev_info(&intf->dev, "%s\n", dev->fw.ic6_vers);
                } else {
                        dbgcm("comedi#: vmk80xx: no conn. to CPU\n");
                }
@@ -1387,8 +1386,8 @@ static int vmk80xx_usb_probe(struct usb_interface *intf,
 
        dev->probed = 1;
 
-       printk(KERN_INFO "comedi#: vmk80xx: board #%d [%s] now attached\n",
-              dev->count, dev->board.name);
+       dev_info(&intf->dev, "board #%d [%s] now attached\n",
+                dev->count, dev->board.name);
 
        mutex_unlock(&glb_mutex);
 
@@ -1422,8 +1421,8 @@ static void vmk80xx_usb_disconnect(struct usb_interface *intf)
        kfree(dev->usb_rx_buf);
        kfree(dev->usb_tx_buf);
 
-       printk(KERN_INFO "comedi#: vmk80xx: board #%d [%s] now detached\n",
-              dev->count, dev->board.name);
+       dev_info(&intf->dev, "board #%d [%s] now detached\n",
+                dev->count, dev->board.name);
 
        up(&dev->limit_sem);
        mutex_unlock(&glb_mutex);