staging: comedi: addi_apci_1564: fix use of apci1564_reset() to disable DI interrupts
authorChase Southwood <chase.southwood@gmail.com>
Thu, 3 Jul 2014 02:17:04 +0000 (21:17 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Jul 2014 23:24:47 +0000 (16:24 -0700)
commitf89ced89d8c0d155e8d802612e3860a440d04afe
tree48ca942bad5201322c96aa67e2ce071e93122196
parentf94f771cc667bdf9ab6a4869bcd19de41c180602
staging: comedi: addi_apci_1564: fix use of apci1564_reset() to disable DI interrupts

apci1564_cos_insn_config() is currently using apci1564_reset() to disable
digital input interrupts when the configuration operation is
COMEDI_DIGITAL_TRIG_DISABLE.  However, this is incorrect as the device reset
function also resets the registers for the digital outputs, timer, watchdog, and
counters as well.  Replace the reset function call with a direct disabling of
just the digital input interrupts.

Signed-off-by: Chase Southwood <chase.southwood@gmail.com>
Cc: 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/addi_apci_1564.c