diff options
author | Tri Vo <trong@android.com> | 2019-08-06 18:48:45 -0700 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2019-08-21 00:20:40 +0200 |
commit | 2434aea58e652a9fe114181ac90aa60e2f2e1b25 (patch) | |
tree | a5f35f8ca4d5a821bd66d6d8d0d874927e390c26 /drivers/acpi/device_pm.c | |
parent | 0d105d0f25386ee5b74603db6d249ebed7590cbc (diff) |
PM / wakeup: Use wakeup_source_register() in wakelock.c
kernel/power/wakelock.c duplicates wakeup source creation and
registration code from drivers/base/power/wakeup.c.
Change struct wakelock's wakeup source to a pointer and use
wakeup_source_register() function to create and register said wakeup
source. Use wakeup_source_unregister() on cleanup path.
Signed-off-by: Tri Vo <trong@android.com>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/device_pm.c')
0 files changed, 0 insertions, 0 deletions