mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-03-16 23:07:00 +00:00
arm: a37xx: pci: Use dev_read_addr()
There is only one base address, so use dev_read_addr() instead of dev_read_addr_index(). Signed-off-by: Pali Rohár <pali@kernel.org> Reviewed-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
cf2a589a89
commit
45e3fe65f6
1 changed files with 1 additions and 1 deletions
|
@ -991,7 +991,7 @@ static int pcie_advk_of_to_plat(struct udevice *dev)
|
|||
struct pcie_advk *pcie = dev_get_priv(dev);
|
||||
|
||||
/* Get the register base address */
|
||||
pcie->base = (void *)dev_read_addr_index(dev, 0);
|
||||
pcie->base = (void *)dev_read_addr(dev);
|
||||
if ((fdt_addr_t)pcie->base == FDT_ADDR_T_NONE)
|
||||
return -EINVAL;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue