Staging: comedi: fix printk issue in das800.c
authorRavishankar karkala Mallikarjunayya <ravishankar.km@greenturtles.in>
Sat, 19 Nov 2011 04:36:48 +0000 (10:06 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 27 Nov 2011 02:48:03 +0000 (18:48 -0800)
This is a patch to the das800.c file that fixes up a printk
warning found by the checkpatch.pl tool.

converted printks to dev_dbg.

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

index ade55f1d864bc9f53db9312c8fe9587d34aaf3ea..6e347b40fe61a0e73ae3cd0f2081ed8114a9e23d 100644 (file)
@@ -296,47 +296,47 @@ static int das800_probe(struct comedi_device *dev)
        switch (id_bits) {
        case 0x0:
                if (board == das800) {
-                       printk(" Board model: DAS-800\n");
+                       dev_dbg(dev->hw_dev, "Board model: DAS-800\n");
                        return board;
                }
                if (board == ciodas800) {
-                       printk(" Board model: CIO-DAS800\n");
+                       dev_dbg(dev->hw_dev, "Board model: CIO-DAS800\n");
                        return board;
                }
-               printk(" Board model (probed): DAS-800\n");
+               dev_dbg(dev->hw_dev, "Board model (probed): DAS-800\n");
                return das800;
                break;
        case 0x2:
                if (board == das801) {
-                       printk(" Board model: DAS-801\n");
+                       dev_dbg(dev->hw_dev, "Board model: DAS-801\n");
                        return board;
                }
                if (board == ciodas801) {
-                       printk(" Board model: CIO-DAS801\n");
+                       dev_dbg(dev->hw_dev, "Board model: CIO-DAS801\n");
                        return board;
                }
-               printk(" Board model (probed): DAS-801\n");
+               dev_dbg(dev->hw_dev, "Board model (probed): DAS-801\n");
                return das801;
                break;
        case 0x3:
                if (board == das802) {
-                       printk(" Board model: DAS-802\n");
+                       dev_dbg(dev->hw_dev, "Board model: DAS-802\n");
                        return board;
                }
                if (board == ciodas802) {
-                       printk(" Board model: CIO-DAS802\n");
+                       dev_dbg(dev->hw_dev, "Board model: CIO-DAS802\n");
                        return board;
                }
                if (board == ciodas80216) {
-                       printk(" Board model: CIO-DAS802/16\n");
+                       dev_dbg(dev->hw_dev, "Board model: CIO-DAS802/16\n");
                        return board;
                }
-               printk(" Board model (probed): DAS-802\n");
+               dev_dbg(dev->hw_dev, "Board model (probed): DAS-802\n");
                return das802;
                break;
        default:
-               printk(" Board model: probe returned 0x%x (unknown)\n",
-                      id_bits);
+               dev_dbg(dev->hw_dev, "Board model: probe returned 0x%x (unknown)\n",
+                       id_bits);
                return board;
                break;
        }