summaryrefslogtreecommitdiff
path: root/drivers/spi/altera_spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/spi/altera_spi.c')
-rw-r--r--drivers/spi/altera_spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/altera_spi.c b/drivers/spi/altera_spi.c
index 3aa7a40b77..61372c52b0 100644
--- a/drivers/spi/altera_spi.c
+++ b/drivers/spi/altera_spi.c
@@ -173,7 +173,7 @@ static int altera_spi_ofdata_to_platdata(struct udevice *bus)
{
struct altera_spi_platdata *plat = dev_get_platdata(bus);
- plat->regs = map_physmem(devfdt_get_addr(bus),
+ plat->regs = map_physmem(dev_read_addr(bus),
sizeof(struct altera_spi_regs),
MAP_NOCACHE);