aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi
diff options
context:
space:
mode:
authorYinghai Lu <yinghai@kernel.org>2012-10-30 16:31:52 -0400
committerBjorn Helgaas <bhelgaas@google.com>2012-11-03 18:26:37 -0400
commitf426cef3bc58806284e0fee55d29262b10279f9c (patch)
tree41c7f7fd60b5aa01979eb8d05f771dddc36e3303 /drivers/acpi
parent13b6a916409adbc47f3d13f9580be0bd413e446e (diff)
PCI/ACPI: Remove acpi_root_driver in reverse order
Call the sub-driver .remove() methods in the reverse order of the .add() methods for symmetry. [bhelgaas: changelog] 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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/pci_root.c b/drivers/acpi/pci_root.c
index a27cbb572fe1..012f40d1d75d 100644
--- a/drivers/acpi/pci_root.c
+++ b/drivers/acpi/pci_root.c
@@ -672,7 +672,7 @@ static int acpi_pci_root_remove(struct acpi_device *device, int type)
672 pci_stop_root_bus(root->bus); 672 pci_stop_root_bus(root->bus);
673 673
674 mutex_lock(&acpi_pci_root_lock); 674 mutex_lock(&acpi_pci_root_lock);
675 list_for_each_entry(driver, &acpi_pci_drivers, node) 675 list_for_each_entry_reverse(driver, &acpi_pci_drivers, node)
676 if (driver->remove) 676 if (driver->remove)
677 driver->remove(root); 677 driver->remove(root);
678 mutex_unlock(&acpi_pci_root_lock); 678 mutex_unlock(&acpi_pci_root_lock);