From 14f48f12132178e5065a4311b7fd1b25500f52c3 Mon Sep 17 00:00:00 2001 From: Grygorii Strashko Date: Thu, 5 Feb 2015 11:37:34 +0200 Subject: [hib-new-ti] input: touchscreen: ldc3001: Fix build error if !CONFIG_PM_SLEEP Fix following build error if CONFIG_PM_SLEEP is not set: drivers/input/touchscreen/ldc3001_ts.c:513:10: error: 'ldc3001_dev_pm_ops' undeclared here (not in a function) .pm = &ldc3001_dev_pm_ops, ^ make[3]: *** [drivers/input/touchscreen/ldc3001_ts.o] Error 1 Signed-off-by: Grygorii Strashko --- drivers/input/touchscreen/ldc3001_ts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/ldc3001_ts.c b/drivers/input/touchscreen/ldc3001_ts.c index f6a83972b81..6cc0798a7e0 100644 --- a/drivers/input/touchscreen/ldc3001_ts.c +++ b/drivers/input/touchscreen/ldc3001_ts.c @@ -107,11 +107,11 @@ static int ldc3001_i2c_ts_resume(struct device *dev) return 0; } +#endif static SIMPLE_DEV_PM_OPS(ldc3001_dev_pm_ops, ldc3001_i2c_ts_suspend, ldc3001_i2c_ts_resume); -#endif #ifdef DEBUG static void dump_touch_data(u8 *message, int len) -- cgit v1.2.3