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:
litong20 2021-09-27 13:06:38 +08:00 • committed by litong
commit 94555cd54a

View file

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