aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma/ste_dma40.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/dma/ste_dma40.c')
-rw-r--r--drivers/dma/ste_dma40.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/dma/ste_dma40.c b/drivers/dma/ste_dma40.c
index 1ea6d02d08a..bdd41d4bfa8 100644
--- a/drivers/dma/ste_dma40.c
+++ b/drivers/dma/ste_dma40.c
@@ -2289,7 +2289,8 @@ static struct dma_async_tx_descriptor *d40_prep_slave_sg(struct dma_chan *chan,
2289 struct scatterlist *sgl, 2289 struct scatterlist *sgl,
2290 unsigned int sg_len, 2290 unsigned int sg_len,
2291 enum dma_transfer_direction direction, 2291 enum dma_transfer_direction direction,
2292 unsigned long dma_flags) 2292 unsigned long dma_flags,
2293 void *context)
2293{ 2294{
2294 if (direction != DMA_DEV_TO_MEM && direction != DMA_MEM_TO_DEV) 2295 if (direction != DMA_DEV_TO_MEM && direction != DMA_MEM_TO_DEV)
2295 return NULL; 2296 return NULL;
@@ -2300,7 +2301,7 @@ static struct dma_async_tx_descriptor *d40_prep_slave_sg(struct dma_chan *chan,
2300static struct dma_async_tx_descriptor * 2301static struct dma_async_tx_descriptor *
2301dma40_prep_dma_cyclic(struct dma_chan *chan, dma_addr_t dma_addr, 2302dma40_prep_dma_cyclic(struct dma_chan *chan, dma_addr_t dma_addr,
2302 size_t buf_len, size_t period_len, 2303 size_t buf_len, size_t period_len,
2303 enum dma_transfer_direction direction) 2304 enum dma_transfer_direction direction, void *context)
2304{ 2305{
2305 unsigned int periods = buf_len / period_len; 2306 unsigned int periods = buf_len / period_len;
2306 struct dma_async_tx_descriptor *txd; 2307 struct dma_async_tx_descriptor *txd;