staging: comedi: addi_apci_1032: check shared interrupt
authorIan Abbott <abbotti@mev.co.uk>
Fri, 9 Nov 2012 10:04:51 +0000 (10:04 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Nov 2012 19:53:02 +0000 (11:53 -0800)
commit792660d534f284ebe730c21bc05a94fbf9c62fbd
treea3d989b7eeb79a135f184e9ebc0dae5412ca4334
parent54327dd75ea2258d6fe5201382fad2254c008f9e
staging: comedi: addi_apci_1032: check shared interrupt

In the interrupt service routine, check the device is asserting the
shared interrupt line and check that interrupts have been enabled.

When attaching the device, disable interrupts before setting up the
interrupt handler to avoid handling spurious interrupts before the
device is ready.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/addi_apci_1032.c