diff options
Diffstat (limited to 'drivers/acpi/pci_root.c')
-rw-r--r-- | drivers/acpi/pci_root.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/acpi/pci_root.c b/drivers/acpi/pci_root.c index 240544253ccd..9eec3095e6c3 100644 --- a/drivers/acpi/pci_root.c +++ b/drivers/acpi/pci_root.c | |||
@@ -608,8 +608,7 @@ static int acpi_pci_root_add(struct acpi_device *device, | |||
608 | pcie_no_aspm(); | 608 | pcie_no_aspm(); |
609 | 609 | ||
610 | pci_acpi_add_bus_pm_notifier(device); | 610 | pci_acpi_add_bus_pm_notifier(device); |
611 | if (device->wakeup.flags.run_wake) | 611 | device_set_wakeup_capable(root->bus->bridge, device->wakeup.flags.valid); |
612 | device_set_run_wake(root->bus->bridge, true); | ||
613 | 612 | ||
614 | if (hotadd) { | 613 | if (hotadd) { |
615 | pcibios_resource_survey_bus(root->bus); | 614 | pcibios_resource_survey_bus(root->bus); |
@@ -649,7 +648,7 @@ static void acpi_pci_root_remove(struct acpi_device *device) | |||
649 | pci_stop_root_bus(root->bus); | 648 | pci_stop_root_bus(root->bus); |
650 | 649 | ||
651 | pci_ioapic_remove(root); | 650 | pci_ioapic_remove(root); |
652 | device_set_run_wake(root->bus->bridge, false); | 651 | device_set_wakeup_capable(root->bus->bridge, false); |
653 | pci_acpi_remove_bus_pm_notifier(device); | 652 | pci_acpi_remove_bus_pm_notifier(device); |
654 | 653 | ||
655 | pci_remove_root_bus(root->bus); | 654 | pci_remove_root_bus(root->bus); |