diff options
Diffstat (limited to 'drivers/dma/ste_dma40.c')
-rw-r--r-- | drivers/dma/ste_dma40.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/dma/ste_dma40.c b/drivers/dma/ste_dma40.c index 1332b1d4d541..3c10f034d4b9 100644 --- a/drivers/dma/ste_dma40.c +++ b/drivers/dma/ste_dma40.c | |||
@@ -2514,7 +2514,8 @@ static struct dma_async_tx_descriptor *d40_prep_memcpy(struct dma_chan *chan, | |||
2514 | sg_dma_len(&dst_sg) = size; | 2514 | sg_dma_len(&dst_sg) = size; |
2515 | sg_dma_len(&src_sg) = size; | 2515 | sg_dma_len(&src_sg) = size; |
2516 | 2516 | ||
2517 | return d40_prep_sg(chan, &src_sg, &dst_sg, 1, DMA_NONE, dma_flags); | 2517 | return d40_prep_sg(chan, &src_sg, &dst_sg, 1, |
2518 | DMA_MEM_TO_MEM, dma_flags); | ||
2518 | } | 2519 | } |
2519 | 2520 | ||
2520 | static struct dma_async_tx_descriptor * | 2521 | static struct dma_async_tx_descriptor * |
@@ -2526,7 +2527,8 @@ d40_prep_memcpy_sg(struct dma_chan *chan, | |||
2526 | if (dst_nents != src_nents) | 2527 | if (dst_nents != src_nents) |
2527 | return NULL; | 2528 | return NULL; |
2528 | 2529 | ||
2529 | return d40_prep_sg(chan, src_sg, dst_sg, src_nents, DMA_NONE, dma_flags); | 2530 | return d40_prep_sg(chan, src_sg, dst_sg, src_nents, |
2531 | DMA_MEM_TO_MEM, dma_flags); | ||
2530 | } | 2532 | } |
2531 | 2533 | ||
2532 | static struct dma_async_tx_descriptor * | 2534 | static struct dma_async_tx_descriptor * |