diff options
author | Thierry Reding <treding@nvidia.com> | 2016-11-25 05:57:11 -0500 |
---|---|---|
committer | Bjorn Helgaas <helgaas@kernel.org> | 2016-12-07 13:05:58 -0500 |
commit | a52d1443bba1db98907521414727eee22ae8c380 (patch) | |
tree | 9fb3d5c40d4da2e8f7bd5fc83bdfb684db63b8fa /drivers/pci | |
parent | 5909406598d9fab58be860b72dff9409bff11653 (diff) |
PCI: Export host bridge registration interface
Allow PCI host bridge drivers to use the new host bridge interfaces to
register their host bridge.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Bjorn Helgaas <helgaas@kernel.org>
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/probe.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index cf9cb6f30782..f85ecb595c30 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c | |||
@@ -521,7 +521,7 @@ static void pci_release_host_bridge_dev(struct device *dev) | |||
521 | kfree(bridge); | 521 | kfree(bridge); |
522 | } | 522 | } |
523 | 523 | ||
524 | static struct pci_host_bridge *pci_alloc_host_bridge(size_t priv) | 524 | struct pci_host_bridge *pci_alloc_host_bridge(size_t priv) |
525 | { | 525 | { |
526 | struct pci_host_bridge *bridge; | 526 | struct pci_host_bridge *bridge; |
527 | 527 | ||
@@ -533,6 +533,7 @@ static struct pci_host_bridge *pci_alloc_host_bridge(size_t priv) | |||
533 | 533 | ||
534 | return bridge; | 534 | return bridge; |
535 | } | 535 | } |
536 | EXPORT_SYMBOL(pci_alloc_host_bridge); | ||
536 | 537 | ||
537 | static const unsigned char pcix_bus_speed[] = { | 538 | static const unsigned char pcix_bus_speed[] = { |
538 | PCI_SPEED_UNKNOWN, /* 0 */ | 539 | PCI_SPEED_UNKNOWN, /* 0 */ |
@@ -717,7 +718,7 @@ static void pci_set_bus_msi_domain(struct pci_bus *bus) | |||
717 | dev_set_msi_domain(&bus->dev, d); | 718 | dev_set_msi_domain(&bus->dev, d); |
718 | } | 719 | } |
719 | 720 | ||
720 | static int pci_register_host_bridge(struct pci_host_bridge *bridge) | 721 | int pci_register_host_bridge(struct pci_host_bridge *bridge) |
721 | { | 722 | { |
722 | struct device *parent = bridge->dev.parent; | 723 | struct device *parent = bridge->dev.parent; |
723 | struct resource_entry *window, *n; | 724 | struct resource_entry *window, *n; |
@@ -832,6 +833,7 @@ free: | |||
832 | kfree(bus); | 833 | kfree(bus); |
833 | return err; | 834 | return err; |
834 | } | 835 | } |
836 | EXPORT_SYMBOL(pci_register_host_bridge); | ||
835 | 837 | ||
836 | static struct pci_bus *pci_alloc_child_bus(struct pci_bus *parent, | 838 | static struct pci_bus *pci_alloc_child_bus(struct pci_bus *parent, |
837 | struct pci_dev *bridge, int busnr) | 839 | struct pci_dev *bridge, int busnr) |