From: Michal Simek Date: Thu, 21 Jun 2018 07:21:35 +0000 (+0200) Subject: gpio: zynq: Use live-tree function X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=d509f8dc5ab95f2be923ff794160213d4347b4b3;p=u-boot.git gpio: zynq: Use live-tree function Use live-tree function. Signed-off-by: Michal Simek --- 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; }