]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
gpio: zynq: Use live-tree function
authorMichal Simek <michal.simek@xilinx.com>
Thu, 21 Jun 2018 07:21:35 +0000 (09:21 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 19 Jul 2018 08:49:53 +0000 (10:49 +0200)
Use live-tree function.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/gpio/zynq_gpio.c

index 8d84e3fc1313e5147888003515fd156393add31b..afba4580f57022c9b0d39c4883a2600be725e0ad 100644 (file)
@@ -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;
 }