aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2008-10-22 23:20:01 -0400
committerLen Brown <len.brown@intel.com>2008-10-22 23:20:01 -0400
commit462af435b3d8c682eb86e79d6a42ed62d183c317 (patch)
treefb810e916568a356586fa9452316b99d9deab780 /drivers/acpi
parent63e065e5d35b7ca1ba2c71a042dfb602820409b8 (diff)
parentfaee816b1502385dc9bc5abf2960d1cc645844d1 (diff)
Merge branch 'bugzilla-10503' into test
Diffstat (limited to 'drivers/acpi')
-rw-r--r--drivers/acpi/scan.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c
index 1f98103b53c3..3196749398ea 100644
--- a/drivers/acpi/scan.c
+++ b/drivers/acpi/scan.c
@@ -751,6 +751,16 @@ static int acpi_bus_get_wakeup_device_flags(struct acpi_device *device)
751 if (!acpi_match_device_ids(device, button_device_ids)) 751 if (!acpi_match_device_ids(device, button_device_ids))
752 device->wakeup.flags.run_wake = 1; 752 device->wakeup.flags.run_wake = 1;
753 753
754 /*
755 * Don't set Power button GPE as run_wake
756 * if Fixed Power button is used
757 */
758 if (!strcmp(device->pnp.hardware_id, "PNP0C0C") &&
759 !(acpi_gbl_FADT.flags & ACPI_FADT_POWER_BUTTON)) {
760 device->wakeup.flags.run_wake = 0;
761 device->wakeup.flags.valid = 0;
762 }
763
754 end: 764 end:
755 if (ACPI_FAILURE(status)) 765 if (ACPI_FAILURE(status))
756 device->flags.wake_capable = 0; 766 device->flags.wake_capable = 0;