aboutsummaryrefslogtreecommitdiff
path: root/drivers/spi/atcspi200_spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/spi/atcspi200_spi.c')
-rw-r--r--drivers/spi/atcspi200_spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/atcspi200_spi.c b/drivers/spi/atcspi200_spi.c
index 328b16c277f..39c6e226ba7 100644
--- a/drivers/spi/atcspi200_spi.c
+++ b/drivers/spi/atcspi200_spi.c
@@ -378,7 +378,7 @@ static int atcspi200_ofdata_to_platadata(struct udevice *bus)
const void *blob = gd->fdt_blob;
int node = dev_of_offset(bus);
- ns->regs = map_physmem(devfdt_get_addr(bus),
+ ns->regs = map_physmem(dev_read_addr(bus),
sizeof(struct atcspi200_spi_regs),
MAP_NOCACHE);
if (!ns->regs) {