summaryrefslogtreecommitdiff
path: root/drivers/spi/uniphier_spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/spi/uniphier_spi.c')
-rw-r--r--drivers/spi/uniphier_spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/uniphier_spi.c b/drivers/spi/uniphier_spi.c
index 114bd8abd7..b6456685f8 100644
--- a/drivers/spi/uniphier_spi.c
+++ b/drivers/spi/uniphier_spi.c
@@ -368,7 +368,7 @@ static int uniphier_spi_ofdata_to_platdata(struct udevice *bus)
const void *blob = gd->fdt_blob;
int node = dev_of_offset(bus);
- plat->base = devfdt_get_addr_ptr(bus);
+ plat->base = dev_read_addr_ptr(bus);
plat->frequency =
fdtdec_get_int(blob, node, "spi-max-frequency", 12500000);