diff options
author | H Hartley Sweeten <hsweeten@visionengravers.com> | 2013-11-26 18:42:03 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-12-03 12:20:21 -0500 |
commit | 427f35222e7da82f4ffead939b1586623d92e1c5 (patch) | |
tree | ff957f5e57d644d81473a138ea36791d8dfc5a72 | |
parent | d3ea1818f36991de1aaf8cc1958768a060a46cde (diff) |
staging: comedi: dt282x: remove disable code that disables the irq
The code that would disable the irq after getting a number of D/A errors
is disabled. Just remove it.
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/dt282x.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/staging/comedi/drivers/dt282x.c b/drivers/staging/comedi/drivers/dt282x.c index 83e9d01839ab..b15520baef05 100644 --- a/drivers/staging/comedi/drivers/dt282x.c +++ b/drivers/staging/comedi/drivers/dt282x.c | |||
@@ -479,13 +479,6 @@ static irqreturn_t dt282x_interrupt(int irq, void *d) | |||
479 | handled = 1; | 479 | handled = 1; |
480 | } | 480 | } |
481 | if (dacsr & DT2821_DAERR) { | 481 | if (dacsr & DT2821_DAERR) { |
482 | #if 0 | ||
483 | static int warn = 5; | ||
484 | if (--warn <= 0) { | ||
485 | disable_irq(dev->irq); | ||
486 | printk(KERN_INFO "disabling irq\n"); | ||
487 | } | ||
488 | #endif | ||
489 | comedi_error(dev, "D/A error"); | 482 | comedi_error(dev, "D/A error"); |
490 | dt282x_ao_cancel(dev, s_ao); | 483 | dt282x_ao_cancel(dev, s_ao); |
491 | s->async->events |= COMEDI_CB_ERROR; | 484 | s->async->events |= COMEDI_CB_ERROR; |