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

Staging: comedi: fix printk issue in pcmuio.c

This is a patch to the pcmuio.c file that fixes up a printk
warning found by the checkpatch.pl tool.

Converted printks to dev_functions.
Signed-off-by: default avatarRavishankar Karkala Mallikarjunayya <ravishankar.km@greenturtles.in>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent de1201ea
...@@ -436,14 +436,13 @@ static int pcmuio_attach(struct comedi_device *dev, struct comedi_devconfig *it) ...@@ -436,14 +436,13 @@ static int pcmuio_attach(struct comedi_device *dev, struct comedi_devconfig *it)
irqs.. */ irqs.. */
if (irq[0]) { if (irq[0]) {
printk("irq: %u ", irq[0]); dev_dbg(dev->hw_dev, "irq: %u\n", irq[0]);
if (irq[1] && thisboard->num_asics == 2) if (irq[1] && thisboard->num_asics == 2)
printk("second ASIC irq: %u ", irq[1]); dev_dbg(dev->hw_dev, "second ASIC irq: %u\n", irq[1]);
} else { } else {
printk("(IRQ mode disabled) "); dev_dbg(dev->hw_dev, "(IRQ mode disabled)\n");
} }
printk("attached\n");
return 1; return 1;
} }
...@@ -460,7 +459,8 @@ static int pcmuio_detach(struct comedi_device *dev) ...@@ -460,7 +459,8 @@ static int pcmuio_detach(struct comedi_device *dev)
{ {
int i; int i;
printk("comedi%d: %s: remove\n", dev->minor, driver.driver_name); dev_dbg(dev->hw_dev, "comedi%d: %s: remove\n", dev->minor,
driver.driver_name);
if (dev->iobase) if (dev->iobase)
release_region(dev->iobase, ASIC_IOSIZE * thisboard->num_asics); release_region(dev->iobase, ASIC_IOSIZE * thisboard->num_asics);
......
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