diff options
author | Tri Vo <trong@android.com> | 2019-08-07 04:48:45 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2019-08-21 01:20:40 +0300 |
commit | 2434aea58e652a9fe114181ac90aa60e2f2e1b25 (patch) | |
tree | a5f35f8ca4d5a821bd66d6d8d0d874927e390c26 /drivers/base/power | |
parent | 0d105d0f25386ee5b74603db6d249ebed7590cbc (diff) | |
download | linux-2434aea58e652a9fe114181ac90aa60e2f2e1b25.tar.xz |
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/base/power')
0 files changed, 0 insertions, 0 deletions