summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrygorii Strashko <Grygorii.Strashko@linaro.org>2015-02-05 11:37:34 +0200
committerGrygorii Strashko <Grygorii.Strashko@linaro.org>2015-02-09 23:32:46 +0800
commit14f48f12132178e5065a4311b7fd1b25500f52c3 (patch)
tree7cb62ea5fa7f020fd4a31a12f09b3a579ec50cf6
parentf78fd60caa886c5d67d1c095a06f4916e945fc2e (diff)
[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 <Grygorii.Strashko@linaro.org>
-rw-r--r--drivers/input/touchscreen/ldc3001_ts.c2
1 files changed, 1 insertions, 1 deletions
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)