diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2019-06-24 14:19:40 +1000 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2019-06-29 10:41:50 +1000 |
commit | 806068f25d8d7e8387b9d566425c8646f7572800 (patch) | |
tree | 5e3c0059af48679293b1e6da3d7d6eff7ec20f16 | |
parent | 9e8c5b00932e76ddda2d77fe53b14f2c505b16fb (diff) | |
download | pci-806068f25d8d7e8387b9d566425c8646f7572800.tar.gz |
PCI: controller: mobiveil: Use pci_host_resource_survey()
Use this instead of pci_assign_unassigned_bus_resources() as it is
more appropriate for a host bridge.
The result should be equivalent based on the default ARM policy.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
-rw-r--r-- | drivers/pci/controller/pcie-mobiveil.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/drivers/pci/controller/pcie-mobiveil.c b/drivers/pci/controller/pcie-mobiveil.c index 77052a0712d042..d1dd8d39e93b04 100644 --- a/drivers/pci/controller/pcie-mobiveil.c +++ b/drivers/pci/controller/pcie-mobiveil.c @@ -753,8 +753,6 @@ static int mobiveil_pcie_init_irq_domain(struct mobiveil_pcie *pcie) static int mobiveil_pcie_probe(struct platform_device *pdev) { struct mobiveil_pcie *pcie; - struct pci_bus *bus; - struct pci_bus *child; struct pci_host_bridge *bridge; struct device *dev = &pdev->dev; resource_size_t iobase; @@ -825,13 +823,8 @@ static int mobiveil_pcie_probe(struct platform_device *pdev) if (ret) goto error; - bus = bridge->bus; - - pci_assign_unassigned_bus_resources(bus); - list_for_each_entry(child, &bus->children, node) - pcie_bus_configure_settings(child); - pci_bus_add_devices(bus); - + pci_host_resource_survey(bridge->bus); + pci_bus_add_devices(bridge->bus); return 0; error: pci_free_resource_list(&pcie->resources); |