From d509f8dc5ab95f2be923ff794160213d4347b4b3 Mon Sep 17 00:00:00 2001 From: Michal Simek Date: Thu, 21 Jun 2018 09:21:35 +0200 Subject: [PATCH] gpio: zynq: Use live-tree function Use live-tree function. Signed-off-by: Michal Simek --- drivers/gpio/zynq_gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/zynq_gpio.c b/drivers/gpio/zynq_gpio.c index 8d84e3fc13..afba4580f5 100644 --- a/drivers/gpio/zynq_gpio.c +++ b/drivers/gpio/zynq_gpio.c @@ -374,7 +374,7 @@ static int zynq_gpio_ofdata_to_platdata(struct udevice *dev) { struct zynq_gpio_privdata *priv = dev_get_priv(dev); - priv->base = devfdt_get_addr(dev); + priv->base = (phys_addr_t)dev_read_addr(dev); return 0; } -- 2.39.5