staging: comedi: addi_apci_1564: use comedi_handle_events()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Thu, 18 Sep 2014 18:35:20 +0000 (11:35 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Oct 2014 02:29:22 +0000 (10:29 +0800)
Use comedi_handle_events() to automatically (*cancel) the async command
for an end-of-acquisition or if an error/overflow occurs.

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/addi_apci_1564.c

index 688b015a834eb2d099de7cc41079e2f3c578a7a3..cf544ab1fc652d9360258332681f0c4d6138cd98 100644 (file)
@@ -97,7 +97,7 @@ static irqreturn_t apci1564_interrupt(int irq, void *d)
                               & 0xffff;
                comedi_buf_put(s, s->state);
                s->async->events |= COMEDI_CB_BLOCK | COMEDI_CB_EOS;
-               comedi_event(dev, s);
+               comedi_handle_events(dev, s);
 
                /* enable the interrupt */
                outl(status, devpriv->amcc_iobase + APCI1564_DI_IRQ_REG);