diff options
author | Michal Simek <michal.simek@xilinx.com> | 2018-06-21 09:21:35 +0200 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2018-07-19 10:49:53 +0200 |
commit | d509f8dc5ab95f2be923ff794160213d4347b4b3 (patch) | |
tree | 18e414c8dfbea0ebb1b8099b6828f7e6c5c2fea3 | |
parent | 1adbf2966adebe67de3dd17094749d387604194e (diff) |
gpio: zynq: Use live-tree function
Use live-tree function.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
-rw-r--r-- | drivers/gpio/zynq_gpio.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |