Patchwork [3/5] PCI,ACPI: Remove _PRT info when removing a host bridge

login
register
mail settings
Submitter Taku Izumi
Date Oct. 30, 2012, 6:25 a.m.
Message ID <20121030152539.dad71d2b.izumi.taku@jp.fujitsu.com>
Download mbox | patch
Permalink /patch/195296/
State Accepted
Headers show

Comments

Taku Izumi - Oct. 30, 2012, 6:25 a.m.
Author: Bjorn Helgaas <bhelgaas@google.com>

PCI/ACPI: Remove _PRT info when removing a host bridge
    
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Taku Izumi <izumi.taku@jp.fujitsu.com>
---
 drivers/acpi/pci_root.c |    2 ++
 1 file changed, 2 insertions(+)


--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

Index: Bjorn-next-0925/drivers/acpi/pci_root.c
===================================================================
--- Bjorn-next-0925.orig/drivers/acpi/pci_root.c
+++ Bjorn-next-0925/drivers/acpi/pci_root.c
@@ -671,6 +671,8 @@  static int acpi_pci_root_remove(struct a
 	device_set_run_wake(root->bus->bridge, false);
 	pci_acpi_remove_bus_pm_notifier(device);
 
+	acpi_pci_irq_del_prt(root->segment, root->secondary.start);
+
 	list_del(&root->node);
 	mutex_unlock(&acpi_pci_root_lock);
 	kfree(root);