dmaengine: fsl-edma: fix calculation of remaining bytes
[cascardo/linux.git] / drivers / dma / coh901318.c
index 3c6716e..e88588d 100644 (file)
@@ -2156,7 +2156,7 @@ coh901318_free_chan_resources(struct dma_chan *chan)
 
        spin_unlock_irqrestore(&cohc->lock, flags);
 
-       chan->device->device_control(chan, DMA_TERMINATE_ALL, 0);
+       dmaengine_terminate_all(chan);
 }