summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorH Hartley Sweeten <hsweeten@visionengravers.com>2014-09-18 18:35:23 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-10-20 02:29:23 (GMT)
commitbc8816511dd91352c15cf20698e2af022aa6f862 (patch)
tree747430809106ca9bddac43d80e22d4df99468e5c /drivers
parenta2c4e3671c0ae8559f82fb11083a688f61bce23e (diff)
downloadlinux-bc8816511dd91352c15cf20698e2af022aa6f862.tar.xz
staging: comedi: comedi_parport: use comedi_handle_events()
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/comedi/drivers/comedi_parport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/comedi/drivers/comedi_parport.c b/drivers/staging/comedi/drivers/comedi_parport.c
index bf00298..0bc3844 100644
--- a/drivers/staging/comedi/drivers/comedi_parport.c
+++ b/drivers/staging/comedi/drivers/comedi_parport.c
@@ -228,7 +228,7 @@ static irqreturn_t parport_interrupt(int irq, void *d)
comedi_buf_put(s, 0);
s->async->events |= COMEDI_CB_BLOCK | COMEDI_CB_EOS;
- comedi_event(dev, s);
+ comedi_handle_events(dev, s);
return IRQ_HANDLED;
}