|
@@ -515,25 +515,23 @@ void pci_common_init_dev(struct device *parent, struct hw_pci *hw)
|
|
list_for_each_entry(sys, &head, node) {
|
|
list_for_each_entry(sys, &head, node) {
|
|
struct pci_bus *bus = sys->bus;
|
|
struct pci_bus *bus = sys->bus;
|
|
|
|
|
|
- if (!pci_has_flag(PCI_PROBE_ONLY)) {
|
|
|
|
|
|
+ /*
|
|
|
|
+ * We insert PCI resources into the iomem_resource and
|
|
|
|
+ * ioport_resource trees in either pci_bus_claim_resources()
|
|
|
|
+ * or pci_bus_assign_resources().
|
|
|
|
+ */
|
|
|
|
+ if (pci_has_flag(PCI_PROBE_ONLY)) {
|
|
|
|
+ pci_bus_claim_resources(bus);
|
|
|
|
+ } else {
|
|
struct pci_bus *child;
|
|
struct pci_bus *child;
|
|
|
|
|
|
- /*
|
|
|
|
- * Size the bridge windows.
|
|
|
|
- */
|
|
|
|
pci_bus_size_bridges(bus);
|
|
pci_bus_size_bridges(bus);
|
|
-
|
|
|
|
- /*
|
|
|
|
- * Assign resources.
|
|
|
|
- */
|
|
|
|
pci_bus_assign_resources(bus);
|
|
pci_bus_assign_resources(bus);
|
|
|
|
|
|
list_for_each_entry(child, &bus->children, node)
|
|
list_for_each_entry(child, &bus->children, node)
|
|
pcie_bus_configure_settings(child);
|
|
pcie_bus_configure_settings(child);
|
|
}
|
|
}
|
|
- /*
|
|
|
|
- * Tell drivers about devices found.
|
|
|
|
- */
|
|
|
|
|
|
+
|
|
pci_bus_add_devices(bus);
|
|
pci_bus_add_devices(bus);
|
|
}
|
|
}
|
|
}
|
|
}
|