mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08: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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user