mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 04:12:04 -04:00
power: 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: I54f79c0f1daf6c539104b97c86bc8f7dfe62ac22 Reviewed-on: https://gerrit.mot.com/1707931 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
12ff792ac6
commit
ce3a86fc5b
1 changed files with 2 additions and 1 deletions
|
|
@ -4199,7 +4199,8 @@ static int smb_mmi_probe(struct platform_device *pdev)
|
|||
INIT_DELAYED_WORK(&chip->heartbeat_work, mmi_heartbeat_work);
|
||||
INIT_DELAYED_WORK(&chip->weakcharger_work, mmi_weakcharger_work);
|
||||
|
||||
#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))
|
||||
chip->smb_mmi_hb_wake_source = wakeup_source_register(chip->dev, "smb_mmi_hb_wake");
|
||||
#else
|
||||
chip->smb_mmi_hb_wake_source = wakeup_source_register("smb_mmi_hb_wake");
|
||||
|
|
|
|||
Loading…
Reference in a new issue