|
@@ -72,7 +72,6 @@ int pci_host_common_probe(struct platform_device *pdev,
|
|
|
const char *type;
|
|
|
struct device *dev = &pdev->dev;
|
|
|
struct device_node *np = dev->of_node;
|
|
|
- struct pci_bus *bus, *child;
|
|
|
struct pci_host_bridge *bridge;
|
|
|
struct pci_config_window *cfg;
|
|
|
struct list_head resources;
|
|
@@ -107,30 +106,11 @@ int pci_host_common_probe(struct platform_device *pdev,
|
|
|
bridge->map_irq = of_irq_parse_and_map_pci;
|
|
|
bridge->swizzle_irq = pci_common_swizzle;
|
|
|
|
|
|
- ret = pci_scan_root_bus_bridge(bridge);
|
|
|
+ ret = pci_host_probe(bridge);
|
|
|
if (ret < 0) {
|
|
|
- dev_err(dev, "Scanning root bridge failed");
|
|
|
pci_free_resource_list(&resources);
|
|
|
return ret;
|
|
|
}
|
|
|
|
|
|
- bus = bridge->bus;
|
|
|
-
|
|
|
- /*
|
|
|
- * 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 {
|
|
|
- pci_bus_size_bridges(bus);
|
|
|
- pci_bus_assign_resources(bus);
|
|
|
-
|
|
|
- list_for_each_entry(child, &bus->children, node)
|
|
|
- pcie_bus_configure_settings(child);
|
|
|
- }
|
|
|
-
|
|
|
- pci_bus_add_devices(bus);
|
|
|
return 0;
|
|
|
}
|