]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
Staging: comedi: fix printk issue in jr3_pci.c
authorRavishankar karkala Mallikarjunayya <ravishankar.km@greenturtles.in>
Mon, 12 Dec 2011 05:19:24 +0000 (10:49 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 14 Dec 2011 00:31:08 +0000 (16:31 -0800)
This is a patch to the jr3_pci.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/jr3_pci.c

index cda67a0337971232faf4b278f547be3337fb41ca..09a2987cbdcc3f98396bb0dd2183c0f9d19df371 100644 (file)
@@ -372,14 +372,14 @@ static int jr3_pci_open(struct comedi_device *dev)
        int i;
        struct jr3_pci_dev_private *devpriv = dev->private;
 
-       printk("jr3_pci_open\n");
+       dev_dbg(dev->hw_dev, "jr3_pci_open\n");
        for (i = 0; i < devpriv->n_channels; i++) {
                struct jr3_pci_subdev_private *p;
 
                p = dev->subdevices[i].private;
                if (p) {
-                       printk("serial: %p %d (%d)\n", p, p->serial_no,
-                              p->channel_no);
+                       dev_dbg(dev->hw_dev, "serial: %p %d (%d)\n", p,
+                               p->serial_no, p->channel_no);
                }
        }
        return 0;
@@ -457,8 +457,8 @@ static int jr3_download_firmware(struct comedi_device *dev, const u8 * data,
                                        break;
                                more = more
                                    && read_idm_word(data, size, &pos, &addr);
-                               printk("Loading#%d %4.4x bytes at %4.4x\n", i,
-                                      count, addr);
+                               dev_dbg(dev->hw_dev, "Loading#%d %4.4x bytes at %4.4x\n",
+                                       i, count, addr);
                                while (more && count > 0) {
                                        if (addr & 0x4000) {
                                                /*  16 bit data, never seen in real life!! */