diff --git a/drivers/misc/sx933x/Kbuild b/drivers/misc/sx933x/Kbuild index b50d44bc4a23..c32c08d718d2 100644 --- a/drivers/misc/sx933x/Kbuild +++ b/drivers/misc/sx933x/Kbuild @@ -1,3 +1,7 @@ +KERNEL_DIR_PATH = $(shell find $(TOP)/kernel/ -name "msm-*" | head -1) + +KERNEL_VERSION_NAME = $(shell basename $(KERNEL_DIR_PATH)) + # add -Wall to try to catch everything we can. EXTRA_CFLAGS += -Wall EXTRA_CFLAGS += -I$(TOP)/motorola/kernel/modules/include @@ -32,6 +36,7 @@ ifneq (,$(filter burton%,$(TARGET_PRODUCT))) EXTRA_CFLAGS += -DCONFIG_CAPSENSE_USB_CAL endif +EXTRA_CFLAGS += -I$(TOP)/kernel/$(KERNEL_VERSION_NAME)/drivers/base KBUILD_EXTRA_SYMBOLS += $(CURDIR)/$(KBUILD_EXTMOD)/../../sensors/Module.symvers sx932x_sar-y := sx933x_sar.o diff --git a/drivers/misc/sx933x/sx933x_sar.c b/drivers/misc/sx933x/sx933x_sar.c index 3bfcd97e15d6..19fefa0bdc11 100644 --- a/drivers/misc/sx933x/sx933x_sar.c +++ b/drivers/misc/sx933x/sx933x_sar.c @@ -34,6 +34,7 @@ #include #include #include "../../../include/linux/input/sx933x.h" /* main struct, interrupt,init,pointers */ +#include "base.h" #define SX933x_DEBUG 0 #define LOG_TAG "[sar SX933x]: " @@ -1001,6 +1002,9 @@ static int sx933x_probe(struct i2c_client *client, const struct i2c_device_id *i return err; } + /*restore sys/class/capsense label*/ + kobject_uevent(&capsense_class.p->subsys.kobj, KOBJ_CHANGE); + /* Add Pointer to main platform data struct */ pDevice->hw = pplatData;