aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Marklund <robert.marklund@stericsson.com>2011-10-18 08:16:07 +0200
committerRobert Marklund <robert.marklund@stericsson.com>2011-10-27 16:09:00 +0200
commit69e0356f21a76ce548f231901dd5e41e69a6866d (patch)
tree5bd56f61d93f5283a7a865c7f5dfe7bd0f5d3cfd
parent6e15f7344871b0df66e91b78f27fe45d0eb6ba36 (diff)
touchscreen: Fix build problems in cyttsp driver
The cyttsp driver dont have proper ifdefs around EARLYSUSPEND code. Change-Id: I03ae51f6b2593ce5cfa601158477eeb485e9f82b Signed-off-by: Robert Marklund <robert.marklund@stericsson.com>
-rwxr-xr-xdrivers/input/touchscreen/cyttsp_core.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/input/touchscreen/cyttsp_core.c b/drivers/input/touchscreen/cyttsp_core.c
index 7a2aa109034..2d9ce61bf54 100755
--- a/drivers/input/touchscreen/cyttsp_core.c
+++ b/drivers/input/touchscreen/cyttsp_core.c
@@ -38,7 +38,9 @@
#include <linux/workqueue.h>
#include <linux/byteorder/generic.h>
#include <linux/bitops.h>
+#ifdef CONFIG_HAS_EARLYSUSPEND
#include <linux/earlysuspend.h>
+#endif
#include <linux/cyttsp.h>
#include <linux/ctype.h>
#include <linux/regulator/consumer.h>
@@ -269,7 +271,9 @@ struct cyttsp {
struct work_struct work;
struct timer_list timer;
struct mutex mutex;
+#ifdef CONFIG_HAS_EARLYSUSPEND
struct early_suspend early_suspend;
+#endif
char phys[32];
struct cyttsp_platform_data *platform_data;
struct cyttsp_bootloader_data bl_data;