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