]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
Staging: comedi: fix printk issue in cb_pcidas64.c
authorRavishankar karkala Mallikarjunayya <ravishankar.km@greenturtles.in>
Mon, 12 Dec 2011 05:19:36 +0000 (10:49 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 14 Dec 2011 00:37:35 +0000 (16:37 -0800)
This is a patch to the cb_pcidas64.c file that fixes up a
printk warning found by the checkpatch.pl tool.

Converted printks to dev_<levels> and Removed unnecessary
printk statements.

Signed-off-by: Ravishankar Karkala Mallikarjunayya <ravishankar.km@greenturtles.in>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/drivers/cb_pcidas64.c

index b68c5874b2e551f4627a2899e70fd2bab430e132..c9e8c4785768ce35f68edb264b4c1489c8f15e16 100644 (file)
@@ -1881,8 +1881,6 @@ static int detach(struct comedi_device *dev)
 {
        unsigned int i;
 
-       printk("comedi%d: cb_pcidas: remove\n", dev->minor);
-
        if (dev->irq)
                free_irq(dev->irq, dev);
        if (priv(dev)) {
@@ -2092,7 +2090,8 @@ static int ai_config_calibration_source(struct comedi_device *dev,
        else
                num_calibration_sources = 8;
        if (source >= num_calibration_sources) {
-               printk("invalid calibration source: %i\n", source);
+               dev_dbg(dev->hw_dev, "invalid calibration source: %i\n",
+                       source);
                return -EINVAL;
        }
 
@@ -2923,7 +2922,7 @@ static void pio_drain_ai_fifo_16(struct comedi_device *dev)
                }
 
                if (num_samples < 0) {
-                       printk(" cb_pcidas64: bug! num_samples < 0\n");
+                       dev_err(dev->hw_dev, "cb_pcidas64: bug! num_samples < 0\n");
                        break;
                }