Skip to content

Commit

Permalink
Revert "ACPI: don't enable control method power button as wakeup devi…
Browse files Browse the repository at this point in the history
…ce when Fixed Power button is used"

This reverts commit faee816.

http://bugzilla.kernel.org/show_bug.cgi?id=12091

Signed-off-by: Len Brown <len.brown@intel.com>
  • Loading branch information
Len Brown committed Nov 26, 2008
1 parent 65df784 commit 3bdca1b
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions drivers/acpi/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -751,16 +751,6 @@ static int acpi_bus_get_wakeup_device_flags(struct acpi_device *device)
if (!acpi_match_device_ids(device, button_device_ids))
device->wakeup.flags.run_wake = 1;

/*
* Don't set Power button GPE as run_wake
* if Fixed Power button is used
*/
if (!strcmp(device->pnp.hardware_id, "PNP0C0C") &&
!(acpi_gbl_FADT.flags & ACPI_FADT_POWER_BUTTON)) {
device->wakeup.flags.run_wake = 0;
device->wakeup.flags.valid = 0;
}

end:
if (ACPI_FAILURE(status))
device->flags.wake_capable = 0;
Expand Down

0 comments on commit 3bdca1b

Please sign in to comment.