mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
ets_fps: Fix build error due to wakeup API changes
On latest 4.14 kernel update, wakeup_source_register API has changed. Update the code accordingly. NO_PROP_NEEDED: <only applies to bo> Change-Id: I1ad821d2fc41f1258144421643ce8d353138d1fa Reviewed-on: https://gerrit.mot.com/1707928 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Ling Jin <lingjin@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
1cbd43088c
commit
bf27ccda54
1 changed files with 2 additions and 1 deletions
|
|
@ -1059,7 +1059,8 @@ static int etspi_probe(struct platform_device *pdev)
|
|||
#ifdef CONFIG_HAS_WAKELOCK
|
||||
wake_lock_init(&ets_wake_lock, WAKE_LOCK_SUSPEND, "ets_wake_lock");
|
||||
#else
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 110))
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 110) || \
|
||||
LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 163))
|
||||
ets_wake_lock = wakeup_source_register(dev, "ets_wake_lock");
|
||||
#else
|
||||
ets_wake_lock = wakeup_source_register("ets_wake_lock");
|
||||
|
|
|
|||
Loading…
Reference in a new issue