aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRavishankar karkala Mallikarjunayya <ravishankar.km@greenturtles.in>2011-12-12 00:19:15 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2011-12-13 19:24:58 -0500
commit23aff74c1a7fed4019f230e6190608ce9c5d3359 (patch)
tree135cdeac5cc4de6dcdc1b3b3bf3ac34c0f508771
parenta65df7974695f53cadfd2ecda60eb03a894b0480 (diff)
Staging: comedi: fix printk issue in dt3000.c
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>
-rw-r--r--drivers/staging/comedi/drivers/dt3000.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/staging/comedi/drivers/dt3000.c b/drivers/staging/comedi/drivers/dt3000.c
index 1e1c5a5662ee..fbc966ac379f 100644
--- a/drivers/staging/comedi/drivers/dt3000.c
+++ b/drivers/staging/comedi/drivers/dt3000.c
@@ -849,7 +849,7 @@ static int dt3000_attach(struct comedi_device *dev, struct comedi_devconfig *it)
849 int bus, slot; 849 int bus, slot;
850 int ret = 0; 850 int ret = 0;
851 851
852 printk("dt3000:"); 852 dev_dbg(dev->hw_dev, "dt3000:\n");
853 bus = it->options[0]; 853 bus = it->options[0];
854 slot = it->options[1]; 854 slot = it->options[1];
855 855
@@ -861,7 +861,7 @@ static int dt3000_attach(struct comedi_device *dev, struct comedi_devconfig *it)
861 if (ret < 0) 861 if (ret < 0)
862 return ret; 862 return ret;
863 if (ret == 0) { 863 if (ret == 0) {
864 printk(" no DT board found\n"); 864 dev_warn(dev->hw_dev, "no DT board found\n");
865 return -ENODEV; 865 return -ENODEV;
866 } 866 }
867 867
@@ -869,7 +869,8 @@ static int dt3000_attach(struct comedi_device *dev, struct comedi_devconfig *it)
869 869
870 if (request_irq(devpriv->pci_dev->irq, dt3k_interrupt, IRQF_SHARED, 870 if (request_irq(devpriv->pci_dev->irq, dt3k_interrupt, IRQF_SHARED,
871 "dt3000", dev)) { 871 "dt3000", dev)) {
872 printk(" unable to allocate IRQ %u\n", devpriv->pci_dev->irq); 872 dev_err(dev->hw_dev, "unable to allocate IRQ %u\n",
873 devpriv->pci_dev->irq);
873 return -EINVAL; 874 return -EINVAL;
874 } 875 }
875 dev->irq = devpriv->pci_dev->irq; 876 dev->irq = devpriv->pci_dev->irq;