]> git.sur5r.net Git - u-boot/commitdiff
altera_sysid: change ioremap to map_physmem
authorThomas Chou <thomas@wytron.com.tw>
Sat, 14 Nov 2015 03:18:52 +0000 (11:18 +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/misc/altera_sysid.c

index 737520f2478966eee149830cc4e4701c3cef2fb2..2d0fa2a7dd1c82cc41417a9ceda58b2a565736a0 100644 (file)
@@ -76,8 +76,9 @@ static int altera_sysid_ofdata_to_platdata(struct udevice *dev)
 {
        struct altera_sysid_platdata *plat = dev_get_platdata(dev);
 
-       plat->regs = ioremap(dev_get_addr(dev),
-               sizeof(struct altera_sysid_regs));
+       plat->regs = map_physmem(dev_get_addr(dev),
+                                sizeof(struct altera_sysid_regs),
+                                MAP_NOCACHE);
 
        return 0;
 }