]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
staging: comedi: addi_apci_2032: always initialize interrupt subdevice
authorIan Abbott <abbotti@mev.co.uk>
Mon, 3 Dec 2012 18:15:46 +0000 (18:15 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Jan 2013 22:10:02 +0000 (14:10 -0800)
commit5f6c2a954d17544c68ce83d016ea456207cadeac
tree10be867a5c13963c2bef7f75f5e393cb46d245c6
parent5c2d4cba9586ddc3505f51bddf935ddc65a0e0bb
staging: comedi: addi_apci_2032: always initialize interrupt subdevice

Initialize the special interrupt subdevice as a digital input subdevice
even if the interrupt handler cannot be registered.  It's `insn_bits`
handler will still read the interrupt status register.  This hardware
status bits in this register might be valid even if they haven't been
enabled in the interrupt control register, but this needs to be checked.
In any case, initializing the subdevice as a digital input subdevice is
harmless.

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