mirror of
https://github.com/torvalds/linux.git
synced 2024-12-03 17:41:22 +00:00
net: ks8842: use dmaengine_terminate_all() API
The drivers should use dmaengine_terminate_all() API instead of accessing the device_control which will be deprecated soon Signed-off-by: Vinod Koul <vinod.koul@intel.com>
This commit is contained in:
parent
0e497c36de
commit
843d349c20
@ -875,13 +875,11 @@ static void ks8842_stop_dma(struct ks8842_adapter *adapter)
|
|||||||
|
|
||||||
tx_ctl->adesc = NULL;
|
tx_ctl->adesc = NULL;
|
||||||
if (tx_ctl->chan)
|
if (tx_ctl->chan)
|
||||||
tx_ctl->chan->device->device_control(tx_ctl->chan,
|
dmaengine_terminate_all(tx_ctl->chan);
|
||||||
DMA_TERMINATE_ALL, 0);
|
|
||||||
|
|
||||||
rx_ctl->adesc = NULL;
|
rx_ctl->adesc = NULL;
|
||||||
if (rx_ctl->chan)
|
if (rx_ctl->chan)
|
||||||
rx_ctl->chan->device->device_control(rx_ctl->chan,
|
dmaengine_terminate_all(rx_ctl->chan);
|
||||||
DMA_TERMINATE_ALL, 0);
|
|
||||||
|
|
||||||
if (sg_dma_address(&rx_ctl->sg))
|
if (sg_dma_address(&rx_ctl->sg))
|
||||||
dma_unmap_single(adapter->dev, sg_dma_address(&rx_ctl->sg),
|
dma_unmap_single(adapter->dev, sg_dma_address(&rx_ctl->sg),
|
||||||
|
Loading…
Reference in New Issue
Block a user