diff options
author | Yinghai Lu <yinghai@kernel.org> | 2012-10-30 16:31:48 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2012-11-03 18:26:37 -0400 |
commit | 13b6a916409adbc47f3d13f9580be0bd413e446e (patch) | |
tree | c27e305d9f693dfc03ba822ab6e3f120dc3a070f /drivers/acpi | |
parent | 9738a1fd214b8f617b31503307c79b6af72ee464 (diff) |
PCI/ACPI: Delete host bridge _PRT during hot remove path
Corresponding to add path.
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/pci_root.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/acpi/pci_root.c b/drivers/acpi/pci_root.c index aed09537861a..a27cbb572fe1 100644 --- a/drivers/acpi/pci_root.c +++ b/drivers/acpi/pci_root.c | |||
@@ -664,6 +664,8 @@ static int acpi_pci_root_start(struct acpi_device *device) | |||
664 | 664 | ||
665 | static int acpi_pci_root_remove(struct acpi_device *device, int type) | 665 | static int acpi_pci_root_remove(struct acpi_device *device, int type) |
666 | { | 666 | { |
667 | acpi_status status; | ||
668 | acpi_handle handle; | ||
667 | struct acpi_pci_root *root = acpi_driver_data(device); | 669 | struct acpi_pci_root *root = acpi_driver_data(device); |
668 | struct acpi_pci_driver *driver; | 670 | struct acpi_pci_driver *driver; |
669 | 671 | ||
@@ -678,6 +680,10 @@ static int acpi_pci_root_remove(struct acpi_device *device, int type) | |||
678 | device_set_run_wake(root->bus->bridge, false); | 680 | device_set_run_wake(root->bus->bridge, false); |
679 | pci_acpi_remove_bus_pm_notifier(device); | 681 | pci_acpi_remove_bus_pm_notifier(device); |
680 | 682 | ||
683 | status = acpi_get_handle(device->handle, METHOD_NAME__PRT, &handle); | ||
684 | if (ACPI_SUCCESS(status)) | ||
685 | acpi_pci_irq_del_prt(root->bus); | ||
686 | |||
681 | pci_remove_root_bus(root->bus); | 687 | pci_remove_root_bus(root->bus); |
682 | 688 | ||
683 | mutex_lock(&acpi_pci_root_lock); | 689 | mutex_lock(&acpi_pci_root_lock); |