Skip to content

Commit

Permalink
staging/comedi: Use dev_ printks in drivers/ni_daq_dio24.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
YAMANE Toshiaki authored and Greg Kroah-Hartman committed Oct 22, 2012
1 parent 3818a14 commit 351be7c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/staging/comedi/drivers/ni_daq_dio24.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down Expand Up @@ -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");

Expand All @@ -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 */
Expand Down

0 comments on commit 351be7c

Please sign in to comment.