mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
staging: comedi: addi_apci_3120: don't reset board when canceling ai command
The analog input (*cancel) stops the async command. There is not reason to also call the board reset function. 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>
This commit is contained in:
parent
73ef193146
commit
a2eb0fd71c
@ -635,7 +635,7 @@ static int apci3120_cancel(struct comedi_device *dev,
|
||||
devpriv->ai_running = 0;
|
||||
devpriv->b_InterruptMode = APCI3120_EOC_MODE;
|
||||
devpriv->b_EocEosInterrupt = APCI3120_DISABLE;
|
||||
apci3120_reset(dev);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user