diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2019-06-24 14:15:09 +1000 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2019-06-29 10:41:50 +1000 |
commit | 9aa4f5606cbf9a1dce3e8f7da0708bbdc83b23ca (patch) | |
tree | fb8d6bc0c64b6d3af475a352a3b1e3434886f95a | |
parent | 5f744b25222f0f9d47a0f57c5858b5a8a1b523dc (diff) | |
download | pci-9aa4f5606cbf9a1dce3e8f7da0708bbdc83b23ca.tar.gz |
PCI: controller: xilinx: 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-xilinx.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/pci/controller/pcie-xilinx.c b/drivers/pci/controller/pcie-xilinx.c index 5bf3af3b28e698..3f435484409144 100644 --- a/drivers/pci/controller/pcie-xilinx.c +++ b/drivers/pci/controller/pcie-xilinx.c @@ -616,7 +616,6 @@ static int xilinx_pcie_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; struct xilinx_pcie_port *port; - struct pci_bus *bus, *child; struct pci_host_bridge *bridge; int err; resource_size_t iobase = 0; @@ -675,12 +674,8 @@ static int xilinx_pcie_probe(struct platform_device *pdev) if (err < 0) 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: |