|
@@ -631,10 +631,15 @@ static int xgene_pcie_probe_bridge(struct platform_device *pdev)
|
|
if (ret)
|
|
if (ret)
|
|
return ret;
|
|
return ret;
|
|
|
|
|
|
- bus = pci_scan_root_bus(&pdev->dev, 0, &xgene_pcie_ops, port, &res);
|
|
|
|
|
|
+ bus = pci_create_root_bus(&pdev->dev, 0,
|
|
|
|
+ &xgene_pcie_ops, port, &res);
|
|
if (!bus)
|
|
if (!bus)
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|
|
|
|
|
|
|
|
+ pci_scan_child_bus(bus);
|
|
|
|
+ pci_assign_unassigned_bus_resources(bus);
|
|
|
|
+ pci_bus_add_devices(bus);
|
|
|
|
+
|
|
platform_set_drvdata(pdev, port);
|
|
platform_set_drvdata(pdev, port);
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|