diff options
author | H Hartley Sweeten <hsweeten@visionengravers.com> | 2014-02-10 11:49:45 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-02-14 09:28:46 -0800 |
commit | 22ca19d93d92c79cff68270846a84bd34fe6fb34 (patch) | |
tree | 1ec371d914a7b965130d658d4232f6d34ef85cb0 /drivers/staging/comedi/drivers/cb_das16_cs.c | |
parent | f7b3d79a622c97483c8d0e6e4bbd5207929259d9 (diff) |
staging: comedi: move (*insn_{read, write}) timeout debug messages to core
Have the comedi core display a standard dev_dbg() message when a timeout
occurs and remove all the driver specific messages.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/comedi/drivers/cb_das16_cs.c')
-rw-r--r-- | drivers/staging/comedi/drivers/cb_das16_cs.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/comedi/drivers/cb_das16_cs.c b/drivers/staging/comedi/drivers/cb_das16_cs.c index 549844cf2b35..e0ed193522e0 100644 --- a/drivers/staging/comedi/drivers/cb_das16_cs.c +++ b/drivers/staging/comedi/drivers/cb_das16_cs.c @@ -152,10 +152,8 @@ static int das16cs_ai_rinsn(struct comedi_device *dev, outw(0, dev->iobase + DAS16CS_ADC_DATA); ret = comedi_timeout(dev, s, insn, das16cs_ai_eoc, 0); - if (ret) { - dev_dbg(dev->class_dev, "cb_das16_cs: ai timeout\n"); + if (ret) return ret; - } data[i] = inw(dev->iobase + DAS16CS_ADC_DATA); } |