staging: comedi: adl_pci9118: DMA requires an interrupt
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 9 Sep 2014 20:05:27 +0000 (13:05 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 Sep 2014 21:34:23 +0000 (14:34 -0700)
commit6cf6b36768db5770c3faf4cb5864926142b069fc
treeb4d452af4678e305d4757cba1a20bda8fbb73678
parentb9ca5508bc39462ee2e1988a23021d8fb1cadd6b
staging: comedi: adl_pci9118: DMA requires an interrupt

In order for DMA to work we also need an interrupt. Refactor the code
so that the DMA allocation is only done if the interrupt is available.

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