From: Michal Simek Date: Thu, 21 Jun 2018 07:21:35 +0000 (+0200) Subject: gpio: zynq: Use live-tree function X-Git-Tag: v2018.09-rc1~141^2~54 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d509f8dc5ab95f2be923ff794160213d4347b4b3;p=platform%2Fkernel%2Fu-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 8d84e3f..afba458 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; }