diff options
author | Palmer Dabbelt <palmer@dabbelt.com> | 2017-06-23 21:50:42 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2017-08-02 15:43:38 -0400 |
commit | bccf90d6e063d278b9ddc78dd266d0adef29886c (patch) | |
tree | 08579c44a77ee7c747ccb0802d2628034868665f /drivers/pci/probe.c | |
parent | 16f73eb02d7e1765ccab3d2018e0bd98eb93d973 (diff) |
PCI: Add a generic weak pcibios_fixup_bus()
Multiple architectures define this as an empty function, and I'm adding
another one as part of the RISC-V port. Add a __weak version of
pcibios_fixup_bus() and delete the now-obselete ones in a handful of
ports.
The only functional change should be that microblaze used to export
pcibios_fixup_bus(). None of the other architectures exports this, so I
just dropped it.
Signed-off-by: Palmer Dabbelt <palmer@dabbelt.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/probe.c')
-rw-r--r-- | drivers/pci/probe.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index c31310db0404..376c61173b4e 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c | |||
@@ -2288,6 +2288,15 @@ void pcie_bus_configure_settings(struct pci_bus *bus) | |||
2288 | } | 2288 | } |
2289 | EXPORT_SYMBOL_GPL(pcie_bus_configure_settings); | 2289 | EXPORT_SYMBOL_GPL(pcie_bus_configure_settings); |
2290 | 2290 | ||
2291 | /* | ||
2292 | * Called after each bus is probed, but before its children are examined. This | ||
2293 | * is marked as __weak because multiple architectures define it. | ||
2294 | */ | ||
2295 | void __weak pcibios_fixup_bus(struct pci_bus *bus) | ||
2296 | { | ||
2297 | /* nothing to do, expected to be removed in the future */ | ||
2298 | } | ||
2299 | |||
2291 | unsigned int pci_scan_child_bus(struct pci_bus *bus) | 2300 | unsigned int pci_scan_child_bus(struct pci_bus *bus) |
2292 | { | 2301 | { |
2293 | unsigned int devfn, pass, max = bus->busn_res.start; | 2302 | unsigned int devfn, pass, max = bus->busn_res.start; |