From a436a73ce06f56bc5439948ba123ded06df1f93c Mon Sep 17 00:00:00 2001 From: litong Date: Wed, 29 Jul 2020 17:53:01 +0800 Subject: [PATCH] touchscreen_mmi: fix undefined symbol error on kernel 5.4 TP: There is a compilation error on kernel 5.4: ERROR: sensors_classdev_unregister undefined! ERROR: sensors_classdev_register undefined! So specific the depended module sensors symbol file. NO_PROP_NEEDED: Change-Id: I4d0acbc01e8c91c6d0226e26e1cd408d55b8df9c Reviewed-on: https://gerrit.mot.com/1708522 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Jichao Zou Submit-Approved: Jira Key --- drivers/input/touchscreen/touchscreen_mmi/Kbuild | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/input/touchscreen/touchscreen_mmi/Kbuild b/drivers/input/touchscreen/touchscreen_mmi/Kbuild index 599d792841ed..8a233c0d19c2 100644 --- a/drivers/input/touchscreen/touchscreen_mmi/Kbuild +++ b/drivers/input/touchscreen/touchscreen_mmi/Kbuild @@ -17,3 +17,5 @@ endif obj-m := touchscreen_mmi.o touchscreen_mmi-objs := touchscreen_mmi_class.o touchscreen_mmi_panel.o touchscreen_mmi_notif.o touchscreen_mmi_gesture.o + +KBUILD_EXTRA_SYMBOLS += $(CURDIR)/$(KBUILD_EXTMOD)/../../../sensors/Module.symvers