Skip to content

Commit

Permalink
ACPI: invoke acpi_device_wakeup() with correct parameters
Browse files Browse the repository at this point in the history
Fix a bug that invokes acpi_device_wakeup() with wrong parameters.

Fixes: f35cec2 (ACPI / PM: Always enable wakeup GPEs when enabling device wakeup)
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Cc: 3.17+ <stable@vger.kernel.org> # 3.17+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Zhang Rui authored and Rafael J. Wysocki committed Oct 23, 2014
1 parent a8d46b9 commit 67598a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/acpi/device_pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ int acpi_pm_device_run_wake(struct device *phys_dev, bool enable)
return -ENODEV;
}

return acpi_device_wakeup(adev, enable, ACPI_STATE_S0);
return acpi_device_wakeup(adev, ACPI_STATE_S0, enable);
}
EXPORT_SYMBOL(acpi_pm_device_run_wake);
#endif /* CONFIG_PM_RUNTIME */
Expand Down

0 comments on commit 67598a1

Please sign in to comment.