diff options
author | H Hartley Sweeten <hsweeten@visionengravers.com> | 2013-11-26 18:41:35 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-12-03 12:20:19 -0500 |
commit | 5adbc856a7e2ac5c710492afcfdfb48325d81653 (patch) | |
tree | f3b17e56d8cce70df7798765e5e7e779f07b4424 | |
parent | 9b35db028f7f5c375ab9cef095ea48250d4c15ff (diff) |
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: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/comedi/drivers/pcl812.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/drivers/staging/comedi/drivers/pcl812.c b/drivers/staging/comedi/drivers/pcl812.c index 03315abcca19..e31cf44faa33 100644 --- a/drivers/staging/comedi/drivers/pcl812.c +++ b/drivers/staging/comedi/drivers/pcl812.c | |||
@@ -404,9 +404,7 @@ static int pcl812_ai_insn_read(struct comedi_device *dev, | |||
404 | goto conv_finish; | 404 | goto conv_finish; |
405 | udelay(1); | 405 | udelay(1); |
406 | } | 406 | } |
407 | printk | 407 | dev_dbg(dev->class_dev, "A/D insn read timeout\n"); |
408 | ("comedi%d: pcl812: (%s at 0x%lx) A/D insn read timeout\n", | ||
409 | dev->minor, dev->board_name, dev->iobase); | ||
410 | outb(devpriv->mode_reg_int | 0, dev->iobase + PCL812_MODE); | 408 | outb(devpriv->mode_reg_int | 0, dev->iobase + PCL812_MODE); |
411 | return -ETIME; | 409 | return -ETIME; |
412 | 410 | ||
@@ -441,9 +439,7 @@ static int acl8216_ai_insn_read(struct comedi_device *dev, | |||
441 | goto conv_finish; | 439 | goto conv_finish; |
442 | udelay(1); | 440 | udelay(1); |
443 | } | 441 | } |
444 | printk | 442 | dev_dbg(dev->class_dev, "A/D insn read timeout\n"); |
445 | ("comedi%d: pcl812: (%s at 0x%lx) A/D insn read timeout\n", | ||
446 | dev->minor, dev->board_name, dev->iobase); | ||
447 | outb(0, dev->iobase + PCL812_MODE); | 443 | outb(0, dev->iobase + PCL812_MODE); |
448 | return -ETIME; | 444 | return -ETIME; |
449 | 445 | ||
@@ -786,10 +782,7 @@ static irqreturn_t interrupt_pcl812_ai_int(int irq, void *d) | |||
786 | } | 782 | } |
787 | 783 | ||
788 | if (err) { | 784 | if (err) { |
789 | printk | 785 | dev_dbg(dev->class_dev, "A/D cmd IRQ without DRDY!\n"); |
790 | ("comedi%d: pcl812: (%s at 0x%lx) " | ||
791 | "A/D cmd IRQ without DRDY!\n", | ||
792 | dev->minor, dev->board_name, dev->iobase); | ||
793 | pcl812_ai_cancel(dev, s); | 786 | pcl812_ai_cancel(dev, s); |
794 | s->async->events |= COMEDI_CB_EOA | COMEDI_CB_ERROR; | 787 | s->async->events |= COMEDI_CB_EOA | COMEDI_CB_ERROR; |
795 | comedi_event(dev, s); | 788 | comedi_event(dev, s); |