mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
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:
parent
ce3a86fc5b
commit
1cbd43088c
1 changed files with 2 additions and 1 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue