gpio: zynq: Use live-tree function

Use live-tree function.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
Michal Simek 2018-06-21 09:21:35 +02:00
parent 1adbf2966a
commit d509f8dc5a

View 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;
}