Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 310436
b: refs/heads/master
c: dbe9a2e
h: refs/heads/master
v: v3
  • Loading branch information
Rafael J. Wysocki committed May 29, 2012
1 parent 37dbbfd commit 99d5a7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 38c92fff988d518fe80dc23d0d44d66bd7e47ddd
refs/heads/master: dbe9a2edd17d843d80faf2b99f20a691c1853418
4 changes: 2 additions & 2 deletions trunk/drivers/acpi/sleep.c
Original file line number Diff line number Diff line change
Expand Up @@ -773,8 +773,8 @@ int acpi_pm_device_sleep_state(struct device *dev, int *d_min_p)
* can wake the system. _S0W may be valid, too.
*/
if (acpi_target_sleep_state == ACPI_STATE_S0 ||
(device_may_wakeup(dev) &&
adev->wakeup.sleep_state <= acpi_target_sleep_state)) {
(device_may_wakeup(dev) && adev->wakeup.flags.valid &&
adev->wakeup.sleep_state >= acpi_target_sleep_state)) {
acpi_status status;

acpi_method[3] = 'W';
Expand Down

0 comments on commit 99d5a7e

Please sign in to comment.