diff options
author | Simon Glass <sjg@chromium.org> | 2019-09-25 08:56:41 -0600 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2019-10-08 13:57:47 +0800 |
commit | 594d272cfd3dc43f118efb952676715b0382af24 (patch) | |
tree | 56b62a6087ca5a531257006410e6e8a6421e15f6 /drivers/core | |
parent | a27520904f54643c9e55f5672f005a207c911f32 (diff) | |
download | u-boot-594d272cfd3dc43f118efb952676715b0382af24.tar.gz u-boot-594d272cfd3dc43f118efb952676715b0382af24.tar.xz u-boot-594d272cfd3dc43f118efb952676715b0382af24.zip |
dm: core: Drop fdtdec_get_pci_addr()
This function ise effectively replaced by ofnode_read_pci_addr() which
works with flat tree. Delete it to avoid code duplication.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'drivers/core')
-rw-r--r-- | drivers/core/fdtaddr.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/drivers/core/fdtaddr.c b/drivers/core/fdtaddr.c index c9a941116a..575798fae9 100644 --- a/drivers/core/fdtaddr.c +++ b/drivers/core/fdtaddr.c @@ -202,16 +202,13 @@ fdt_addr_t devfdt_get_addr_pci(struct udevice *dev) u32 bar; int ret; - ret = fdtdec_get_pci_addr(gd->fdt_blob, - dev_of_offset(dev), - FDT_PCI_SPACE_MEM32, "reg", - &pci_addr); + ret = ofnode_read_pci_addr(dev_ofnode(dev), FDT_PCI_SPACE_MEM32, + "reg", &pci_addr); if (ret) { /* try if there is any i/o-mapped register */ - ret = fdtdec_get_pci_addr(gd->fdt_blob, - dev_of_offset(dev), - FDT_PCI_SPACE_IO, "reg", - &pci_addr); + ret = ofnode_read_pci_addr(dev_ofnode(dev), + FDT_PCI_SPACE_IO, "reg", + &pci_addr); if (ret) return FDT_ADDR_T_NONE; } |