Commit 7fa69baf29de8c77a6b32c054df2abb8f11f8aa4

Authored by Rafael J. Wysocki
Committed by Len Brown
1 parent f2b56bc808

ACPI / PM: Drop special ACPI wakeup flags

Drop special ACPI wakeup flags, wakeup.state.enabled and
wakeup.flags.always_enabled, that aren't necessary any more after
we've started to use standard device wakeup flags for handling ACPI
wakeup devices.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Len Brown <len.brown@intel.com>

Showing 2 changed files with 1 additions and 10 deletions Side-by-side Diff

... ... @@ -167,11 +167,8 @@
167 167 "firmware_node");
168 168 ret = sysfs_create_link(&acpi_dev->dev.kobj, &dev->kobj,
169 169 "physical_node");
170   - if (acpi_dev->wakeup.flags.valid) {
  170 + if (acpi_dev->wakeup.flags.valid)
171 171 device_set_wakeup_capable(dev, true);
172   - device_set_wakeup_enable(dev,
173   - acpi_dev->wakeup.state.enabled);
174   - }
175 172 }
176 173  
177 174 return 0;
include/acpi/acpi_bus.h
... ... @@ -242,20 +242,14 @@
242 242 struct acpi_device_wakeup_flags {
243 243 u8 valid:1; /* Can successfully enable wakeup? */
244 244 u8 run_wake:1; /* Run-Wake GPE devices */
245   - u8 always_enabled:1; /* Run-wake devices that are always enabled */
246 245 u8 notifier_present:1; /* Wake-up notify handler has been installed */
247 246 };
248 247  
249   -struct acpi_device_wakeup_state {
250   - u8 enabled:1;
251   -};
252   -
253 248 struct acpi_device_wakeup {
254 249 acpi_handle gpe_device;
255 250 u64 gpe_number;
256 251 u64 sleep_state;
257 252 struct acpi_handle_list resources;
258   - struct acpi_device_wakeup_state state;
259 253 struct acpi_device_wakeup_flags flags;
260 254 int prepare_count;
261 255 int run_wake_count;