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:
Rafael Ortolan 2020-07-28 16:14:21 -03:00
commit ce3a86fc5b

View file

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