]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: comedi: dt282x: remove disable code that disables the irq
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 26 Nov 2013 23:42:03 +0000 (16:42 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Dec 2013 17:20:21 +0000 (09:20 -0800)
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>
drivers/staging/comedi/drivers/dt282x.c

index 83e9d01839ab70f66533d2fdd594fc7808341a4f..b15520baef05e40cc7d4f90b1667b17c5a00053b 100644 (file)
@@ -479,13 +479,6 @@ static irqreturn_t dt282x_interrupt(int irq, void *d)
                handled = 1;
        }
        if (dacsr & DT2821_DAERR) {
-#if 0
-               static int warn = 5;
-               if (--warn <= 0) {
-                       disable_irq(dev->irq);
-                       printk(KERN_INFO "disabling irq\n");
-               }
-#endif
                comedi_error(dev, "D/A error");
                dt282x_ao_cancel(dev, s_ao);
                s->async->events |= COMEDI_CB_ERROR;