aw8695: 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: If28a0811fccb1cb62a9c23718081c70ddc34214d
Reviewed-on: https://gerrit.mot.com/1707930
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
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:10:20 -03:00
commit 1cbd43088c

View file

@ -3294,7 +3294,8 @@ static int aw8695_vibrator_init(struct aw8695 *aw8695)
INIT_WORK(&aw8695->rtp_work, aw8695_rtp_work_routine);
#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))
aw8695->ws = wakeup_source_register(aw8695->dev, "vibrator");
#else
aw8695->ws = wakeup_source_register("vibrator");