diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2011-09-11 14:08:38 -0300 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2011-10-14 09:05:29 -0700 |
commit | e24442733ee486c99d03fe2ecd98924d1bc14c51 (patch) | |
tree | 799b7789febb8491115c97f5a136042d26a81cff /drivers/pci | |
parent | 72da0b07b1b497927758a2102b856ce41e4ba81e (diff) | |
download | linux-stable-e24442733ee486c99d03fe2ecd98924d1bc14c51.tar.gz linux-stable-e24442733ee486c99d03fe2ecd98924d1bc14c51.tar.bz2 linux-stable-e24442733ee486c99d03fe2ecd98924d1bc14c51.zip |
PCI: Make pci_setup_bridge() non-static for use by arch code
The "powernv" platform of the powerpc architecture needs to assign PCI
resources using a specific algorithm to fit some HW constraints of
the IBM "IODA" architecture (related to the ability to create error
handling domains that encompass specific segments of MMIO space).
For doing so, it wants to call pci_setup_bridge() from architecture
specific resource management in order to configure bridges after all
resources have been assigned. So make it non-static.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/setup-bus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/setup-bus.c b/drivers/pci/setup-bus.c index 784da9d36029..86b69f85f900 100644 --- a/drivers/pci/setup-bus.c +++ b/drivers/pci/setup-bus.c @@ -426,7 +426,7 @@ static void __pci_setup_bridge(struct pci_bus *bus, unsigned long type) pci_write_config_word(bridge, PCI_BRIDGE_CONTROL, bus->bridge_ctl); } -static void pci_setup_bridge(struct pci_bus *bus) +void pci_setup_bridge(struct pci_bus *bus) { unsigned long type = IORESOURCE_IO | IORESOURCE_MEM | IORESOURCE_PREFETCH; |