aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64/pci/pci.c
diff options
context:
space:
mode:
authorYijing Wang <wangyijing@huawei.com>2013-06-06 03:34:51 -0400
committerTony Luck <tony.luck@intel.com>2013-06-18 12:47:33 -0400
commit2932239fb485931b82c50e4876a0c2d14b7711ac (patch)
tree0b43e9980e199829b3043f0653de2552a0bd33d5 /arch/ia64/pci/pci.c
parentc9e391cf1b3c1c46bf79c75b3bc5677909fcd625 (diff)
PCI/IA64: Add host bridge resource release for _CRS path
Set IA64 host bridge release function to make sure root bridge related resources get freed during root bus removal. Signed-off-by: Yijing Wang <wangyijing@huawei.com> Signed-off-by: Jiang Liu <jiang.liu@huawei.com> Cc: Fenghua Yu <fenghua.yu@intel.com> Cc: Yinghai Lu <yinghai@kernel.org> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: linux-ia64@vger.kernel.org Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64/pci/pci.c')
-rw-r--r--arch/ia64/pci/pci.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/ia64/pci/pci.c b/arch/ia64/pci/pci.c
index 99a9f672d156..72a1957dfff3 100644
--- a/arch/ia64/pci/pci.c
+++ b/arch/ia64/pci/pci.c
@@ -369,6 +369,13 @@ static void __release_pci_root_info(struct pci_root_info *info)
369 kfree(info); 369 kfree(info);
370} 370}
371 371
372static void release_pci_root_info(struct pci_host_bridge *bridge)
373{
374 struct pci_root_info *info = bridge->release_data;
375
376 __release_pci_root_info(info);
377}
378
372struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root) 379struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root)
373{ 380{
374 struct acpi_device *device = root->device; 381 struct acpi_device *device = root->device;
@@ -446,6 +453,8 @@ struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root)
446 return NULL; 453 return NULL;
447 } 454 }
448 455
456 pci_set_host_bridge_release(to_pci_host_bridge(pbus->bridge),
457 release_pci_root_info, info);
449 pci_scan_child_bus(pbus); 458 pci_scan_child_bus(pbus);
450 return pbus; 459 return pbus;
451 460