aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/probe.c
diff options
context:
space:
mode:
authorYinghai Lu <yinghai@kernel.org>2012-04-02 21:31:53 -0400
committerBjorn Helgaas <bhelgaas@google.com>2012-04-30 16:52:43 -0400
commit4fa2649a01a4357a82dcc60ef8fb7b8c441e64ed (patch)
treedfe8dd728396fd3034f20de91bb610422a9bc4e6 /drivers/pci/probe.c
parent7b54366358008241f88228f02cc80ab352265eac (diff)
PCI: add host bridge release support
We need a hook to release host bridge resources allocated when creating root bus. Signed-off-by: Yinghai Lu <yinghai@kernel.org> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/probe.c')
-rw-r--r--drivers/pci/probe.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
index 8d291ee15257..4c2f22668ea7 100644
--- a/drivers/pci/probe.c
+++ b/drivers/pci/probe.c
@@ -1137,7 +1137,8 @@ static void pci_release_bus_bridge_dev(struct device *dev)
1137{ 1137{
1138 struct pci_host_bridge *bridge = to_pci_host_bridge(dev); 1138 struct pci_host_bridge *bridge = to_pci_host_bridge(dev);
1139 1139
1140 /* TODO: need to free window->res */ 1140 if (bridge->release_fn)
1141 bridge->release_fn(bridge);
1141 1142
1142 pci_free_resource_list(&bridge->windows); 1143 pci_free_resource_list(&bridge->windows);
1143 1144