From: Thomas Chou Date: Sat, 14 Nov 2015 03:17:25 +0000 (+0800) Subject: altera_spi: change ioremap to map_physmem X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=7313e21a1e226daac277fcd8a19c29fb46bed74d;p=u-boot.git altera_spi: change ioremap to map_physmem Change ioremap() to map_physmem(), as it is more used in u-boot. Signed-off-by: Thomas Chou Reviewed-by: Marek Vasut --- diff --git a/drivers/spi/altera_spi.c b/drivers/spi/altera_spi.c index 3e09592ac6..eb1ba27acc 100644 --- a/drivers/spi/altera_spi.c +++ b/drivers/spi/altera_spi.c @@ -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; }