summaryrefslogtreecommitdiffstats
path: root/drivers/dma/at_hdmac.c
diff options
context:
space:
mode:
authorVinod Koul2018-10-24 10:15:37 +0200
committerVinod Koul2018-10-24 10:15:37 +0200
commitedc329fbb8de57afd144632cdb0749c7da27810a (patch)
tree16920b8f50e4b45ff9420268d24c44a9393f1a3e /drivers/dma/at_hdmac.c
parentMerge branch 'topic/at' into for-linus (diff)
parentdmaengine: mmp_tdma: remove dma_slave_config direction usage (diff)
downloadkernel-qcow2-linux-edc329fbb8de57afd144632cdb0749c7da27810a.tar.gz
kernel-qcow2-linux-edc329fbb8de57afd144632cdb0749c7da27810a.tar.xz
kernel-qcow2-linux-edc329fbb8de57afd144632cdb0749c7da27810a.zip
Merge branch 'topic/dirn_remove' into for-linus
Diffstat (limited to 'drivers/dma/at_hdmac.c')
-rw-r--r--drivers/dma/at_hdmac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/at_hdmac.c b/drivers/dma/at_hdmac.c
index 75f38d19fcbe..7cbac6e8c113 100644
--- a/drivers/dma/at_hdmac.c
+++ b/drivers/dma/at_hdmac.c
@@ -1320,7 +1320,7 @@ atc_prep_dma_cyclic(struct dma_chan *chan, dma_addr_t buf_addr, size_t buf_len,
if (unlikely(!is_slave_direction(direction)))
goto err_out;
- if (sconfig->direction == DMA_MEM_TO_DEV)
+ if (direction == DMA_MEM_TO_DEV)
reg_width = convert_buswidth(sconfig->dst_addr_width);
else
reg_width = convert_buswidth(sconfig->src_addr_width);