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:
1 parent
18499521b5
commit
94555cd54a
1 file changed
+1
-4
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user