Commit 1aa301e8 authored by Ravishankar karkala Mallikarjunayya's avatar Ravishankar karkala Mallikarjunayya Committed by Greg Kroah-Hartman

Staging: comedi: fix printk issue in ni_daq_dio24.c

This is a patch to the ni_daq_dio24.c file that fixes up a printk
warning found by the checkpatch.pl tool.
Converted printks to pr_<levels> and dev_version.
Signed-off-by: default avatarRavishankar Karkala Mallikarjunayya <ravishankar.km@greenturtles.in>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent ef7908eb
...@@ -133,21 +133,19 @@ static int dio24_attach(struct comedi_device *dev, struct comedi_devconfig *it) ...@@ -133,21 +133,19 @@ static int dio24_attach(struct comedi_device *dev, struct comedi_devconfig *it)
#endif #endif
break; break;
default: default:
printk("bug! couldn't determine board type\n"); pr_err("bug! couldn't determine board type\n");
return -EINVAL; return -EINVAL;
break; break;
} }
printk("comedi%d: ni_daq_dio24: %s, io 0x%lx", dev->minor, pr_debug("comedi%d: ni_daq_dio24: %s, io 0x%lx", dev->minor,
thisboard->name, iobase); thisboard->name, iobase);
#ifdef incomplete #ifdef incomplete
if (irq) if (irq)
printk(", irq %u", irq); pr_debug("irq %u\n", irq);
#endif #endif
printk("\n");
if (iobase == 0) { if (iobase == 0) {
printk("io base address is zero!\n"); pr_err("io base address is zero!\n");
return -EINVAL; return -EINVAL;
} }
...@@ -172,7 +170,7 @@ static int dio24_attach(struct comedi_device *dev, struct comedi_devconfig *it) ...@@ -172,7 +170,7 @@ static int dio24_attach(struct comedi_device *dev, struct comedi_devconfig *it)
static int dio24_detach(struct comedi_device *dev) static int dio24_detach(struct comedi_device *dev)
{ {
printk("comedi%d: ni_daq_dio24: remove\n", dev->minor); dev_info(dev->hw_dev, "comedi%d: ni_daq_dio24: remove\n", dev->minor);
if (dev->subdevices) if (dev->subdevices)
subdev_8255_cleanup(dev, dev->subdevices + 0); subdev_8255_cleanup(dev, dev->subdevices + 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment