summaryrefslogtreecommitdiff
path: root/drivers/gpio/sifive-gpio.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpio/sifive-gpio.c')
-rw-r--r--drivers/gpio/sifive-gpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/sifive-gpio.c b/drivers/gpio/sifive-gpio.c
index bf3537b76b..24da3b3c23 100644
--- a/drivers/gpio/sifive-gpio.c
+++ b/drivers/gpio/sifive-gpio.c
@@ -159,7 +159,7 @@ static int sifive_gpio_ofdata_to_platdata(struct udevice *dev)
struct sifive_gpio_platdata *plat = dev_get_platdata(dev);
fdt_addr_t addr;
- addr = dev_read_addr(dev);
+ addr = devfdt_get_addr(dev);
if (addr == FDT_ADDR_T_NONE)
return -EINVAL;