async_tx: replace direct ->device_prep*() calls with standard DMA engine API
PATCH 1/1 async_tx: replace direct ->device_prep*() calls with standard DMA engine API
From: Frank Li <[email protected]>
DMA engine consumers must not call the channel's device_prep_*() function pointers directly. Use the standard dmaengine wrapper APIs instead.
Signed-off-by Frank Li <[email protected]>
--- crypto/async_tx/async_memcpy.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
crypto/async_tx/async_memcpy.c +3 -3
@@ -58,9 +58,9 @@ async_memcpy(struct page *dest, struct page *src, unsigned int dest_offset, DMA_FROM_DEVICE); unmap->len = len; - tx = device->device_prep_dma_memcpy (chan, unmap->addr[1 ], - unmap->addr[0 ], len, - dma_prep_flags); + tx =dmaengine_prep_dma_memcpy (chan, unmap->addr[1 ], + unmap->addr[0 ], len, + dma_prep_flags); }if (tx) {
Signature · 1 line
2.43.0