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:
Rafael Ortolan 2020-07-28 16:00:11 -03:00
commit bf27ccda54

View file

@ -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");