net: ks8842: use dmaengine_terminate_all() API
authorVinod Koul <vinod.koul@intel.com>
Sat, 11 Oct 2014 15:40:34 +0000 (21:10 +0530)
committerVinod Koul <vinod.koul@intel.com>
Wed, 15 Oct 2014 16:01:00 +0000 (21:31 +0530)
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>
drivers/net/ethernet/micrel/ks8842.c

index 822616e3c3754118ab2e09eada44d59a24c3954c..0c33b92a5a81103ec6ff03f83db0253409f03297 100644 (file)
@@ -875,13 +875,11 @@ static void ks8842_stop_dma(struct ks8842_adapter *adapter)
 
        tx_ctl->adesc = NULL;
        if (tx_ctl->chan)
-               tx_ctl->chan->device->device_control(tx_ctl->chan,
-                       DMA_TERMINATE_ALL, 0);
+               dmaengine_terminate_all(tx_ctl->chan);
 
        rx_ctl->adesc = NULL;
        if (rx_ctl->chan)
-               rx_ctl->chan->device->device_control(rx_ctl->chan,
-                       DMA_TERMINATE_ALL, 0);
+               dmaengine_terminate_all(rx_ctl->chan);
 
        if (sg_dma_address(&rx_ctl->sg))
                dma_unmap_single(adapter->dev, sg_dma_address(&rx_ctl->sg),