[PATCH u-boot-marvell 3/4] arm: a37xx: pci: Use dev_read_addr()
Stefan Roese
sr at denx.de
Thu Feb 17 16:36:07 CET 2022
On 2/10/22 14:53, Pali Rohár wrote:
> There is only one base address, so use dev_read_addr() instead of dev_read_addr_index().
>
> Signed-off-by: Pali Rohár <pali at kernel.org>
Applied to u-boot-marvell/master
Thanks,
Stefan
> ---
> drivers/pci/pci-aardvark.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/pci/pci-aardvark.c b/drivers/pci/pci-aardvark.c
> index 8e3b13b49ea0..6e65c0e1558c 100644
> --- a/drivers/pci/pci-aardvark.c
> +++ b/drivers/pci/pci-aardvark.c
> @@ -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;
>
Viele Grüße,
Stefan Roese
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr at denx.de
More information about the U-Boot
mailing list