board_r: Introduce CONFIG_PCI_INIT_R Kconfig option
[oweals/u-boot.git] / common / board_r.c
index f6770f2300047e37f4fea5c4f39e226f3eb860ef..96034b874e560f832a7f1f338b848fa2a850a30e 100644 (file)
@@ -232,9 +232,8 @@ static int initr_unlock_ram_in_cache(void)
 #ifdef CONFIG_PCI
 static int initr_pci(void)
 {
-#ifndef CONFIG_DM_PCI
-       pci_init();
-#endif
+       if (IS_ENABLED(CONFIG_PCI_INIT_R))
+               pci_init();
 
        return 0;
 }