Staging: comedi: fix printk issue in dt3000.c
authorRavishankar karkala Mallikarjunayya <ravishankar.km@greenturtles.in>
Mon, 12 Dec 2011 05:19:15 +0000 (10:49 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 14 Dec 2011 00:24:58 +0000 (16:24 -0800)
This is a patch to the dt3000.c file that fixes up a
printk warning found by the checkpatch.pl tool.

Converted printks to dev_<levels>.

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

index 1e1c5a5662ee1fba8671eb65b7155ee2a9573f55..fbc966ac379ff1f144c4e3921b9c01f43286adc2 100644 (file)
@@ -849,7 +849,7 @@ static int dt3000_attach(struct comedi_device *dev, struct comedi_devconfig *it)
        int bus, slot;
        int ret = 0;
 
-       printk("dt3000:");
+       dev_dbg(dev->hw_dev, "dt3000:\n");
        bus = it->options[0];
        slot = it->options[1];
 
@@ -861,7 +861,7 @@ static int dt3000_attach(struct comedi_device *dev, struct comedi_devconfig *it)
        if (ret < 0)
                return ret;
        if (ret == 0) {
-               printk(" no DT board found\n");
+               dev_warn(dev->hw_dev, "no DT board found\n");
                return -ENODEV;
        }
 
@@ -869,7 +869,8 @@ static int dt3000_attach(struct comedi_device *dev, struct comedi_devconfig *it)
 
        if (request_irq(devpriv->pci_dev->irq, dt3k_interrupt, IRQF_SHARED,
                        "dt3000", dev)) {
-               printk(" unable to allocate IRQ %u\n", devpriv->pci_dev->irq);
+               dev_err(dev->hw_dev, "unable to allocate IRQ %u\n",
+                       devpriv->pci_dev->irq);
                return -EINVAL;
        }
        dev->irq = devpriv->pci_dev->irq;
This page took 0.025222 seconds and 5 git commands to generate.