mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 04:42:04 -04:00
Resolve compilation errors for unused functions
TP: Resolve compilation errors for unused functions ts_mmi_kobject_get_path. Change-Id: I22b213db2304f4c3c73867ad9625f20715a4a528 Reviewed-on: https://gerrit.mot.com/2077104 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jichao Zou <zoujc@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
18499521b5
commit
94555cd54a
1 changed files with 1 additions and 4 deletions
|
|
@ -184,11 +184,8 @@ static ssize_t path_show(struct device *dev,
|
|||
return (ssize_t)0;
|
||||
}
|
||||
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 10, 0))
|
||||
path = ts_mmi_kobject_get_path(&DEV_MMI->kobj, GFP_KERNEL);
|
||||
#else
|
||||
path = kobject_get_path(&DEV_MMI->kobj, GFP_KERNEL);
|
||||
#endif
|
||||
|
||||
blen = scnprintf(buf, PAGE_SIZE, "%s", path ? path : "na");
|
||||
kfree(path);
|
||||
return blen;
|
||||
|
|
|
|||
Loading…
Reference in a new issue