]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Staging: comedi: fix printk issue in pcmuio.c
authorRavishankar karkala Mallikarjunayya <ravishankar.km@greenturtles.in>
Mon, 12 Dec 2011 05:19:19 +0000 (10:49 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 14 Dec 2011 00:25:00 +0000 (16:25 -0800)
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: Ravishankar Karkala Mallikarjunayya <ravishankar.km@greenturtles.in>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/drivers/pcmuio.c

index 41f843b933c93ba6668457c3e4206e904160a080..9a5dc91e6a8cd4471836345633e85c8fd5cf5f49 100644 (file)
@@ -436,14 +436,13 @@ static int pcmuio_attach(struct comedi_device *dev, struct comedi_devconfig *it)
                                   irqs.. */
 
        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)
-                       printk("second ASIC irq: %u ", irq[1]);
+                       dev_dbg(dev->hw_dev, "second ASIC irq: %u\n", irq[1]);
        } else {
-               printk("(IRQ mode disabled) ");
+               dev_dbg(dev->hw_dev, "(IRQ mode disabled)\n");
        }
 
-       printk("attached\n");
 
        return 1;
 }
@@ -460,7 +459,8 @@ static int pcmuio_detach(struct comedi_device *dev)
 {
        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)
                release_region(dev->iobase, ASIC_IOSIZE * thisboard->num_asics);