staging/comedi: Use dev_ printks in drivers/ni_daq_dio24.c
authorYAMANE Toshiaki <yamanetoshi@gmail.com>
Mon, 8 Oct 2012 12:25:58 +0000 (21:25 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Oct 2012 19:47:57 +0000 (12:47 -0700)
fixed below checkpatch warning.
- 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/ni_daq_dio24.c

index 1984c5fa3afed1c8307c93b185164724a0fa0c36..8df5bfe721f56c1b8482c70e45b69dc399b5db94 100644 (file)
@@ -202,7 +202,7 @@ static int dio24_cs_attach(struct pcmcia_device *link)
 {
        struct local_info_t *local;
 
-       printk(KERN_INFO "ni_daq_dio24: HOLA SOY YO - CS-attach!\n");
+       dev_info(&link->dev, "ni_daq_dio24: HOLA SOY YO - CS-attach!\n");
 
        dev_dbg(&link->dev, "dio24_cs_attach()\n");
 
@@ -242,7 +242,7 @@ static void dio24_config(struct pcmcia_device *link)
 {
        int ret;
 
-       printk(KERN_INFO "ni_daq_dio24: HOLA SOY YO! - config\n");
+       dev_info(&link->dev, "ni_daq_dio24: HOLA SOY YO! - config\n");
 
        dev_dbg(&link->dev, "dio24_config\n");
 
@@ -265,7 +265,7 @@ static void dio24_config(struct pcmcia_device *link)
        return;
 
 failed:
-       printk(KERN_INFO "Fallo");
+       dev_info(&link->dev, "Fallo");
        dio24_release(link);
 
 }                              /* dio24_config */