aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/pci_root.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/pci_root.c')
-rw-r--r--drivers/acpi/pci_root.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/acpi/pci_root.c b/drivers/acpi/pci_root.c
index 68d679e21248..4bec13d9c2bf 100644
--- a/drivers/acpi/pci_root.c
+++ b/drivers/acpi/pci_root.c
@@ -626,14 +626,25 @@ end:
626static int acpi_pci_root_start(struct acpi_device *device) 626static int acpi_pci_root_start(struct acpi_device *device)
627{ 627{
628 struct acpi_pci_root *root = acpi_driver_data(device); 628 struct acpi_pci_root *root = acpi_driver_data(device);
629 struct acpi_pci_driver *driver;
630
631 list_for_each_entry(driver, &acpi_pci_drivers, node)
632 if (driver->add)
633 driver->add(device->handle);
629 634
630 pci_bus_add_devices(root->bus); 635 pci_bus_add_devices(root->bus);
636
631 return 0; 637 return 0;
632} 638}
633 639
634static int acpi_pci_root_remove(struct acpi_device *device, int type) 640static int acpi_pci_root_remove(struct acpi_device *device, int type)
635{ 641{
636 struct acpi_pci_root *root = acpi_driver_data(device); 642 struct acpi_pci_root *root = acpi_driver_data(device);
643 struct acpi_pci_driver *driver;
644
645 list_for_each_entry(driver, &acpi_pci_drivers, node)
646 if (driver->remove)
647 driver->remove(root->device->handle);
637 648
638 device_set_run_wake(root->bus->bridge, false); 649 device_set_run_wake(root->bus->bridge, false);
639 pci_acpi_remove_bus_pm_notifier(device); 650 pci_acpi_remove_bus_pm_notifier(device);