summaryrefslogtreecommitdiffstats
path: root/drivers/pci/probe.c
diff options
context:
space:
mode:
authorYinghai Lu <yinghai@kernel.org>2012-04-02 18:31:53 -0700
committerBjorn Helgaas <bhelgaas@google.com>2012-04-30 14:52:43 -0600
commit4fa2649a01a4357a82dcc60ef8fb7b8c441e64ed (patch)
treedfe8dd728396fd3034f20de91bb610422a9bc4e6 /drivers/pci/probe.c
parent7b54366358008241f88228f02cc80ab352265eac (diff)
downloadop-kernel-dev-4fa2649a01a4357a82dcc60ef8fb7b8c441e64ed.zip
op-kernel-dev-4fa2649a01a4357a82dcc60ef8fb7b8c441e64ed.tar.gz
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 8d291ee..4c2f226 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)
{
struct pci_host_bridge *bridge = to_pci_host_bridge(dev);
- /* TODO: need to free window->res */
+ if (bridge->release_fn)
+ bridge->release_fn(bridge);
pci_free_resource_list(&bridge->windows);
OpenPOWER on IntegriCloud