aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2019-06-18 14:18:13 +1000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2019-06-29 09:31:24 +1000
commit33895e9ec809cf1ee1648dd1d6d6e7a5e273df4a (patch)
tree807ff1d4ec6ac1b6d463e7f477a39beef4e5c4b8
parent430e8edf2a3185240f8bf8c24d6f7aeacd1139a6 (diff)
downloadpci-33895e9ec809cf1ee1648dd1d6d6e7a5e273df4a.tar.gz
sh: PCI: Use pci_host_resource_survey()
This replaces the open coded equivalent Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
-rw-r--r--arch/sh/drivers/pci/pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sh/drivers/pci/pci.c b/arch/sh/drivers/pci/pci.c
index c7784e1569644d..b05263cef85c7c 100644
--- a/arch/sh/drivers/pci/pci.c
+++ b/arch/sh/drivers/pci/pci.c
@@ -62,6 +62,7 @@ static void pcibios_scanbus(struct pci_channel *hose)
bridge->ops = hose->pci_ops;
bridge->swizzle_irq = pci_common_swizzle;
bridge->map_irq = pcibios_map_platform_irq;
+ bridge->rsrc_policy = pci_rsrc_assign_only;
ret = pci_scan_root_bus_bridge(bridge);
if (ret) {
@@ -82,8 +83,7 @@ static void pcibios_scanbus(struct pci_channel *hose)
need_domain_info = 1;
}
- pci_bus_size_bridges(hose->bus);
- pci_bus_assign_resources(hose->bus);
+ pci_host_resource_survey(hose->bus);
pci_bus_add_devices(hose->bus);
}