From 69e0356f21a76ce548f231901dd5e41e69a6866d Mon Sep 17 00:00:00 2001 From: Robert Marklund Date: Tue, 18 Oct 2011 08:16:07 +0200 Subject: 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 --- drivers/input/touchscreen/cyttsp_core.c | 4 ++++ 1 file changed, 4 insertions(+) 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 #include #include +#ifdef CONFIG_HAS_EARLYSUSPEND #include +#endif #include #include #include @@ -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; -- cgit v1.2.3