summaryrefslogtreecommitdiff
path: root/arch/arm/mach-mvebu
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-08-02 03:54:36 +0300
committerTom Rini <trini@konsulko.com>2021-08-06 15:20:45 +0300
commitebacc78e3e5c77e98216ebfe45012f7e632c2786 (patch)
tree6e6c02ba98bce662611d17d7126ce30b21ecbd99 /arch/arm/mach-mvebu
parent63814a69864ec5b2b8e85aace86ec1270e755c09 (diff)
downloadu-boot-ebacc78e3e5c77e98216ebfe45012f7e632c2786.tar.xz
pci: arm: mvebu: Drop DM_PCI check from arch_early_init_r
We don't need this check anymore since when PCI is enabled, driver model is always used. Use CONFIG_PCI instead. Signed-off-by: Simon Glass <sjg@chromium.org> [trini: Correct macro usage) Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'arch/arm/mach-mvebu')
-rw-r--r--arch/arm/mach-mvebu/arm64-common.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/arm/mach-mvebu/arm64-common.c b/arch/arm/mach-mvebu/arm64-common.c
index fa687d8abb..5357aa554d 100644
--- a/arch/arm/mach-mvebu/arm64-common.c
+++ b/arch/arm/mach-mvebu/arm64-common.c
@@ -104,10 +104,9 @@ int arch_early_init_r(void)
/* Cause the SATA device to do its early init */
uclass_first_device(UCLASS_AHCI, &dev);
-#ifdef CONFIG_DM_PCI
/* Trigger PCIe devices detection */
- pci_init();
-#endif
+ if (IS_ENABLED(CONFIG_PCI))
+ pci_init();
return 0;
}