mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
staging: comedi: ni_pcidio: remove redundant mite disarm/reset
The mite_release_channel() will disarm and reset the mite channel. Remove the redundant calls in ni_pcidio_release_di_mite_channel(). 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
ef81f55b07
commit
eecbadef12
1 changed files with 0 additions and 2 deletions
|
|
@ -324,8 +324,6 @@ static void ni_pcidio_release_di_mite_channel(struct comedi_device *dev)
|
|||
|
||||
spin_lock_irqsave(&devpriv->mite_channel_lock, flags);
|
||||
if (devpriv->di_mite_chan) {
|
||||
mite_dma_disarm(devpriv->di_mite_chan);
|
||||
mite_dma_reset(devpriv->di_mite_chan);
|
||||
mite_release_channel(devpriv->di_mite_chan);
|
||||
devpriv->di_mite_chan = NULL;
|
||||
writeb(primary_DMAChannel_bits(0) |
|
||||
|
|
|
|||
Loading…
Reference in a new issue