mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-06 03:45:24 -04:00
power: Fix build error due to wakeup API changes
On latest 4.14 kernel update, wakeup_source_register API has changed. Handle kernel versions properly. NO_PROP_NEEDED: <only applies to bo> Change-Id: I9e0bef689106e0707afc8265ef0332719347991f Reviewed-on: https://gerrit.mot.com/1709017 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
2eb5d0bf34
commit
edd16e2517
1 changed files with 1 additions and 1 deletions
|
|
@ -4200,7 +4200,7 @@ static int smb_mmi_probe(struct platform_device *pdev)
|
|||
INIT_DELAYED_WORK(&chip->weakcharger_work, mmi_weakcharger_work);
|
||||
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 110) || \
|
||||
LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 163))
|
||||
(LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 163) && LINUX_VERSION_CODE < KERNEL_VERSION(4, 19, 0)))
|
||||
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