Move pci_probe() call into pciinit() code.
[seabios.git] / src / pciinit.c
index 6bd8390954500c00256739fc65368a2dbf435db4..efb91876a63fa88f2d2d20523365b9f21f31efdf 100644 (file)
@@ -436,9 +436,11 @@ pci_bios_init_bus(void)
 void
 pci_setup(void)
 {
-    if (CONFIG_COREBOOT || usingXen())
-        // Already done by coreboot or Xen.
+    if (CONFIG_COREBOOT || usingXen()) {
+        // PCI setup already done by coreboot or Xen - just do probe.
+        pci_probe();
         return;
+    }
 
     dprintf(3, "pci setup\n");
 
@@ -450,6 +452,8 @@ pci_setup(void)
 
     pci_bios_init_bus();
 
+    pci_probe();
+
     int bdf, max;
     foreachbdf(bdf, max) {
         pci_init_device(pci_isa_bridge_tbl, bdf, NULL);