mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
gpio: zynq: Use live-tree function
Use live-tree function. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
parent
1adbf2966a
commit
d509f8dc5a
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue