diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2019-06-24 13:32:15 +1000 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2019-06-29 10:41:50 +1000 |
commit | dd296652191f6a9d80f93b505a41f2fa5a3a01ad (patch) | |
tree | f7ff8cd2f4b046acef2de497723fa2df72d576bb | |
parent | ae644adaf0080455b696f17e2f15ed3344a6f6af (diff) | |
download | pci-dd296652191f6a9d80f93b505a41f2fa5a3a01ad.tar.gz |
PCI: controller: ftpci100: Use pci_host_resource_survey()
This replaces the call to pci_bus_assign_resources() which was
incomplete (it was lacking bridge sizing). Additionally this will
honor the resource allocation policy set by the platform.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
-rw-r--r-- | drivers/pci/controller/pci-ftpci100.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/controller/pci-ftpci100.c b/drivers/pci/controller/pci-ftpci100.c index bf5ece5d9291f1..73cb1991516cb9 100644 --- a/drivers/pci/controller/pci-ftpci100.c +++ b/drivers/pci/controller/pci-ftpci100.c @@ -579,7 +579,7 @@ static int faraday_pci_probe(struct platform_device *pdev) p->bus->max_bus_speed = max_bus_speed; p->bus->cur_bus_speed = cur_bus_speed; - pci_bus_assign_resources(p->bus); + pci_host_resource_survey(p->bus); pci_bus_add_devices(p->bus); pci_free_resource_list(&res); |