]> git.sur5r.net Git - u-boot/commitdiff
altera_tse: change ioremap to map_physmem
authorThomas Chou <thomas@wytron.com.tw>
Sat, 14 Nov 2015 03:21:16 +0000 (11:21 +0800)
committerThomas Chou <thomas@wytron.com.tw>
Wed, 18 Nov 2015 13:18:30 +0000 (21:18 +0800)
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>
drivers/net/altera_tse.c

index 5692fe9d4a3b54cf7a7dd08d40eaea5aaf057f5a..3eaa27067772a4b18dd2f6d31bf2bf055b76a3e4 100644 (file)
@@ -608,7 +608,7 @@ static int altera_tse_probe(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, "control_port") == 0)
                        priv->mac_dev = base;