Staging: comedi: fix printk issue in cb_pcidas64.c

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>
This commit is contained in:
Ravishankar karkala Mallikarjunayya 2011-12-12 10:49:36 +05:30 committed by Greg Kroah-Hartman
parent d78678dad3
commit 6c6c227d2a

View 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;
}