summaryrefslogtreecommitdiff
path: root/drivers/gpio/zynq_gpio.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpio/zynq_gpio.c')
-rw-r--r--drivers/gpio/zynq_gpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/zynq_gpio.c b/drivers/gpio/zynq_gpio.c
index 64579a1b6c..4cb75a8627 100644
--- a/drivers/gpio/zynq_gpio.c
+++ b/drivers/gpio/zynq_gpio.c
@@ -375,7 +375,7 @@ static int zynq_gpio_ofdata_to_platdata(struct udevice *dev)
{
struct zynq_gpio_privdata *priv = dev_get_priv(dev);
- priv->base = dev_get_addr(dev);
+ priv->base = devfdt_get_addr(dev);
return 0;
}