summaryrefslogtreecommitdiff
path: root/drivers/base
diff options
context:
space:
mode:
authorTri Vo <trong@android.com>2019-08-07 04:48:45 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2019-08-21 01:20:40 +0300
commit2434aea58e652a9fe114181ac90aa60e2f2e1b25 (patch)
treea5f35f8ca4d5a821bd66d6d8d0d874927e390c26 /drivers/base
parent0d105d0f25386ee5b74603db6d249ebed7590cbc (diff)
downloadlinux-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')
0 files changed, 0 insertions, 0 deletions