aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/wakeup.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/wakeup.c')
-rw-r--r--drivers/acpi/wakeup.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/acpi/wakeup.c b/drivers/acpi/wakeup.c
index 6783986c7469..4b9d339a6e28 100644
--- a/drivers/acpi/wakeup.c
+++ b/drivers/acpi/wakeup.c
@@ -110,7 +110,8 @@ int __init acpi_wakeup_device_init(void)
110 struct acpi_device, 110 struct acpi_device,
111 wakeup_list); 111 wakeup_list);
112 /* In case user doesn't load button driver */ 112 /* In case user doesn't load button driver */
113 if (!dev->wakeup.flags.run_wake || dev->wakeup.state.enabled) 113 if (!dev->wakeup.flags.always_enabled ||
114 dev->wakeup.state.enabled)
114 continue; 115 continue;
115 acpi_enable_gpe(dev->wakeup.gpe_device, dev->wakeup.gpe_number, 116 acpi_enable_gpe(dev->wakeup.gpe_device, dev->wakeup.gpe_number,
116 ACPI_GPE_TYPE_WAKE); 117 ACPI_GPE_TYPE_WAKE);