aboutsummaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2020-02-14 16:40:18 +0900
committerPeng Fan <peng.fan@nxp.com>2020-02-19 21:27:30 +0800
commit950c5968672a22a65790534234d1106bd1303652 (patch)
treedcdcf7cf9c5f247f17ce4fabd18ce85e238dacb9 /drivers/mmc
parentc22c0dbd7d3bb7ce47779b757d567d2e7746744b (diff)
downloadu-boot-950c5968672a22a65790534234d1106bd1303652.zip
u-boot-950c5968672a22a65790534234d1106bd1303652.tar.gz
u-boot-950c5968672a22a65790534234d1106bd1303652.tar.bz2
dma-mapping: fix the prototype of dma_unmap_single()
dma_unmap_single() takes the dma address, not virtual address. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/tmio-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/tmio-common.c b/drivers/mmc/tmio-common.c
index 092b740..5321388 100644
--- a/drivers/mmc/tmio-common.c
+++ b/drivers/mmc/tmio-common.c
@@ -353,7 +353,7 @@ static int tmio_sd_dma_xfer(struct udevice *dev, struct mmc_data *data)
if (poll_flag == TMIO_SD_DMA_INFO1_END_RD)
udelay(1);
- dma_unmap_single(buf, len, dir);
+ dma_unmap_single(dma_addr, len, dir);
return ret;
}