Commit 4a706e2e authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: ni_at_a2150: use comedi_handle_events()

cfc_handle_events() is just a wrapper around comedi_handle_events().
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9e1a0824
...@@ -188,14 +188,14 @@ static irqreturn_t a2150_interrupt(int irq, void *d) ...@@ -188,14 +188,14 @@ static irqreturn_t a2150_interrupt(int irq, void *d)
if (status & OVFL_BIT) { if (status & OVFL_BIT) {
dev_err(dev->class_dev, "fifo overflow\n"); dev_err(dev->class_dev, "fifo overflow\n");
async->events |= COMEDI_CB_ERROR | COMEDI_CB_EOA; async->events |= COMEDI_CB_ERROR | COMEDI_CB_EOA;
cfc_handle_events(dev, s); comedi_handle_events(dev, s);
} }
if ((status & DMA_TC_BIT) == 0) { if ((status & DMA_TC_BIT) == 0) {
dev_err(dev->class_dev, dev_err(dev->class_dev,
"caught non-dma interrupt? Aborting.\n"); "caught non-dma interrupt? Aborting.\n");
async->events |= COMEDI_CB_ERROR | COMEDI_CB_EOA; async->events |= COMEDI_CB_ERROR | COMEDI_CB_EOA;
cfc_handle_events(dev, s); comedi_handle_events(dev, s);
return IRQ_HANDLED; return IRQ_HANDLED;
} }
...@@ -255,7 +255,7 @@ static irqreturn_t a2150_interrupt(int irq, void *d) ...@@ -255,7 +255,7 @@ static irqreturn_t a2150_interrupt(int irq, void *d)
async->events |= COMEDI_CB_BLOCK; async->events |= COMEDI_CB_BLOCK;
cfc_handle_events(dev, s); comedi_handle_events(dev, s);
/* clear interrupt */ /* clear interrupt */
outw(0x00, dev->iobase + DMA_TC_CLEAR_REG); outw(0x00, dev->iobase + DMA_TC_CLEAR_REG);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment