summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-08-01 18:54:23 -0600
committerTom Rini <trini@konsulko.com>2021-08-05 16:14:36 -0400
commitdebf660312a60ff35afb62961e3352a0b22abc0a (patch)
treef5c5fcf8ca96eaebcdce57401889434d23e6b7b4 /drivers
parent97229af027225ec09d244ec94b29c6fab5d0fc4f (diff)
downloadu-boot-debf660312a60ff35afb62961e3352a0b22abc0a.tar.gz
pci: dm: core: Drop DM_PCI check from devfdt_get_addr_pci()
We don't need this check anymore since when PCI is enabled, driver model is always used. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/core/fdtaddr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/core/fdtaddr.c b/drivers/core/fdtaddr.c
index b9874c743d..4ffbd6b2eb 100644
--- a/drivers/core/fdtaddr.c
+++ b/drivers/core/fdtaddr.c
@@ -200,8 +200,7 @@ fdt_addr_t devfdt_get_addr_pci(const struct udevice *dev)
ulong addr;
addr = devfdt_get_addr(dev);
- if (CONFIG_IS_ENABLED(PCI) && IS_ENABLED(CONFIG_DM_PCI) &&
- addr == FDT_ADDR_T_NONE) {
+ if (CONFIG_IS_ENABLED(PCI) && addr == FDT_ADDR_T_NONE) {
struct fdt_pci_addr pci_addr;
u32 bar;
int ret;