提交 6c6c227d 编写于 作者: R Ravishankar karkala Mallikarjunayya 提交者: Greg Kroah-Hartman

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: NRavishankar Karkala Mallikarjunayya <ravishankar.km@greenturtles.in>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 d78678da
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册