Commit 5adbc856 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: pcl812: convert some printk's to dev_dbg()

Convert these debug messages to dev_dbg() and tidy them up a bit.
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9b35db02
...@@ -404,9 +404,7 @@ static int pcl812_ai_insn_read(struct comedi_device *dev, ...@@ -404,9 +404,7 @@ static int pcl812_ai_insn_read(struct comedi_device *dev,
goto conv_finish; goto conv_finish;
udelay(1); udelay(1);
} }
printk dev_dbg(dev->class_dev, "A/D insn read timeout\n");
("comedi%d: pcl812: (%s at 0x%lx) A/D insn read timeout\n",
dev->minor, dev->board_name, dev->iobase);
outb(devpriv->mode_reg_int | 0, dev->iobase + PCL812_MODE); outb(devpriv->mode_reg_int | 0, dev->iobase + PCL812_MODE);
return -ETIME; return -ETIME;
...@@ -441,9 +439,7 @@ static int acl8216_ai_insn_read(struct comedi_device *dev, ...@@ -441,9 +439,7 @@ static int acl8216_ai_insn_read(struct comedi_device *dev,
goto conv_finish; goto conv_finish;
udelay(1); udelay(1);
} }
printk dev_dbg(dev->class_dev, "A/D insn read timeout\n");
("comedi%d: pcl812: (%s at 0x%lx) A/D insn read timeout\n",
dev->minor, dev->board_name, dev->iobase);
outb(0, dev->iobase + PCL812_MODE); outb(0, dev->iobase + PCL812_MODE);
return -ETIME; return -ETIME;
...@@ -786,10 +782,7 @@ static irqreturn_t interrupt_pcl812_ai_int(int irq, void *d) ...@@ -786,10 +782,7 @@ static irqreturn_t interrupt_pcl812_ai_int(int irq, void *d)
} }
if (err) { if (err) {
printk dev_dbg(dev->class_dev, "A/D cmd IRQ without DRDY!\n");
("comedi%d: pcl812: (%s at 0x%lx) "
"A/D cmd IRQ without DRDY!\n",
dev->minor, dev->board_name, dev->iobase);
pcl812_ai_cancel(dev, s); pcl812_ai_cancel(dev, s);
s->async->events |= COMEDI_CB_EOA | COMEDI_CB_ERROR; s->async->events |= COMEDI_CB_EOA | COMEDI_CB_ERROR;
comedi_event(dev, s); comedi_event(dev, s);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment