altera_spi: change ioremap to map_physmem
authorThomas Chou <thomas@wytron.com.tw>
Sat, 14 Nov 2015 03:17:25 +0000 (11:17 +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/spi/altera_spi.c

index 3e09592ac6f0bd92ae30583c6eb968db60b19189..eb1ba27accfc25ef4f7678917c2b7071654dd722 100644 (file)
@@ -174,8 +174,9 @@ static int altera_spi_ofdata_to_platdata(struct udevice *bus)
 {
        struct altera_spi_platdata *plat = dev_get_platdata(bus);
 
-       plat->regs = ioremap(dev_get_addr(bus),
-               sizeof(struct altera_spi_regs));
+       plat->regs = map_physmem(dev_get_addr(bus),
+                                sizeof(struct altera_spi_regs),
+                                MAP_NOCACHE);
 
        return 0;
 }