aboutsummaryrefslogtreecommitdiff
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 eb1ba27accf..c8dcb82150c 100644
--- a/drivers/spi/altera_spi.c
+++ b/drivers/spi/altera_spi.c
@@ -174,7 +174,7 @@ static int altera_spi_ofdata_to_platdata(struct udevice *bus)
{
struct altera_spi_platdata *plat = dev_get_platdata(bus);
- plat->regs = map_physmem(dev_get_addr(bus),
+ plat->regs = map_physmem(devfdt_get_addr(bus),
sizeof(struct altera_spi_regs),
MAP_NOCACHE);