[U-Boot] [PATCH] gpio: zynq: Use live-tree function
Michal Simek
michal.simek at xilinx.com
Thu Jun 21 08:03:43 UTC 2018
Use live-tree function.
Signed-off-by: Michal Simek <michal.simek at xilinx.com>
---
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 8d84e3fc1313..afba4580f570 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;
}
--
1.9.1
More information about the U-Boot
mailing list