aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma/at_hdmac.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/dma/at_hdmac.c')
-rw-r--r--drivers/dma/at_hdmac.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dma/at_hdmac.c b/drivers/dma/at_hdmac.c
index a0f3e6a06e06..6eea8883ecf3 100644
--- a/drivers/dma/at_hdmac.c
+++ b/drivers/dma/at_hdmac.c
@@ -670,7 +670,7 @@ atc_prep_slave_sg(struct dma_chan *chan, struct scatterlist *sgl,
670 if (!desc) 670 if (!desc)
671 goto err_desc_get; 671 goto err_desc_get;
672 672
673 mem = sg_phys(sg); 673 mem = sg_dma_address(sg);
674 len = sg_dma_len(sg); 674 len = sg_dma_len(sg);
675 mem_width = 2; 675 mem_width = 2;
676 if (unlikely(mem & 3 || len & 3)) 676 if (unlikely(mem & 3 || len & 3))
@@ -712,7 +712,7 @@ atc_prep_slave_sg(struct dma_chan *chan, struct scatterlist *sgl,
712 if (!desc) 712 if (!desc)
713 goto err_desc_get; 713 goto err_desc_get;
714 714
715 mem = sg_phys(sg); 715 mem = sg_dma_address(sg);
716 len = sg_dma_len(sg); 716 len = sg_dma_len(sg);
717 mem_width = 2; 717 mem_width = 2;
718 if (unlikely(mem & 3 || len & 3)) 718 if (unlikely(mem & 3 || len & 3))