diff --git a/drivers/input/misc/qpnp_power_on_mmi/Android.mk b/drivers/input/misc/qpnp_power_on_mmi/Android.mk index f3ebef87b36f..2abb402bcca1 100644 --- a/drivers/input/misc/qpnp_power_on_mmi/Android.mk +++ b/drivers/input/misc/qpnp_power_on_mmi/Android.mk @@ -5,5 +5,6 @@ include $(CLEAR_VARS) LOCAL_MODULE := qpnp-power-on-mmi.ko LOCAL_MODULE_TAGS := optional LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT) +KBUILD_OPTIONS_GKI += MODULE_KERNEL_VERSION=$(TARGET_KERNEL_VERSION) include $(DLKM_DIR)/AndroidKernelModule.mk diff --git a/drivers/input/misc/qpnp_power_on_mmi/Kbuild b/drivers/input/misc/qpnp_power_on_mmi/Kbuild index 6725e071c124..dd859e89187d 100644 --- a/drivers/input/misc/qpnp_power_on_mmi/Kbuild +++ b/drivers/input/misc/qpnp_power_on_mmi/Kbuild @@ -1,6 +1,7 @@ # add -Wall to try to catch everything we can. EXTRA_CFLAGS += -Wall EXTRA_CFLAGS += -I$(TOP)/motorola/kernel/modules/include +KBUILD_EXTRA_SYMBOLS += $(CURDIR)/../../kernel/msm-$(MODULE_KERNEL_VERSION)/Module.symvers obj-m += qpnp-power-on-mmi.o