aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-mvebu/arm64-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-mvebu/arm64-common.c')
-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;
}