From: Thomas Chou <thomas@wytron.com.tw>
Date: Sat, 14 Nov 2015 03:22:50 +0000 (+0800)
Subject: altera_qspi: change ioremap to map_physmem
X-Git-Tag: v2025.01-rc5-pxa1908~11198
X-Git-Url: http://git.dujemihanovic.xyz/img/html/index.html?a=commitdiff_plain;h=8ed38fa50c2a40851f6201bd795666a850617eb9;p=u-boot.git

altera_qspi: change ioremap to map_physmem

Change ioremap() to map_physmem(), as it is more used in u-boot.

Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
Reviewed-by: Marek Vasut <marex@denx.de>
---

diff --git a/drivers/mtd/altera_qspi.c b/drivers/mtd/altera_qspi.c
index 1826dc8272..50c6e0e587 100644
--- a/drivers/mtd/altera_qspi.c
+++ b/drivers/mtd/altera_qspi.c
@@ -243,7 +243,7 @@ static int altera_qspi_ofdata_to_platdata(struct udevice *dev)
 		addr = fdt_translate_address((void *)blob,
 					     node, cell + idx);
 		size = fdt_addr_to_cpu(cell[idx + addrc]);
-		base = ioremap(addr, size);
+		base = map_physmem(addr, size, MAP_NOCACHE);
 		len = strlen(list);
 		if (strcmp(list, "avl_csr") == 0) {
 			pdata->regs = base;