aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/acpi/sleep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/acpi/sleep.c b/drivers/acpi/sleep.c
index a564fc3ffa1c..d8b381e94ee2 100644
--- a/drivers/acpi/sleep.c
+++ b/drivers/acpi/sleep.c
@@ -773,8 +773,8 @@ int acpi_pm_device_sleep_state(struct device *dev, int *d_min_p)
773 * can wake the system. _S0W may be valid, too. 773 * can wake the system. _S0W may be valid, too.
774 */ 774 */
775 if (acpi_target_sleep_state == ACPI_STATE_S0 || 775 if (acpi_target_sleep_state == ACPI_STATE_S0 ||
776 (device_may_wakeup(dev) && 776 (device_may_wakeup(dev) && adev->wakeup.flags.valid &&
777 adev->wakeup.sleep_state <= acpi_target_sleep_state)) { 777 adev->wakeup.sleep_state >= acpi_target_sleep_state)) {
778 acpi_status status; 778 acpi_status status;
779 779
780 acpi_method[3] = 'W'; 780 acpi_method[3] = 'W';