]> git.baikalelectronics.ru Git - uboot.git/commitdiff
arm: a37xx: pci: Use dev_read_addr()
authorPali Rohár <pali@kernel.org>
Thu, 10 Feb 2022 13:53:44 +0000 (14:53 +0100)
committerStefan Roese <sr@denx.de>
Thu, 17 Feb 2022 13:17:07 +0000 (14:17 +0100)
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>
drivers/pci/pci-aardvark.c

index 8e3b13b49ea0bc1e79f6b526a8e55bb89b4e0e1d..6e65c0e1558c977bd2abf0bc3c2cfa081e9f2cc0 100644 (file)
@@ -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;