summaryrefslogtreecommitdiff
path: root/drivers/input/touchscreen
diff options
context:
space:
mode:
authorScott Williams <scwilliams@nvidia.com>2011-08-23 15:51:44 -0700
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:52:22 -0800
commit9512d01e80d15a17ae846863f0bc309d55592a66 (patch)
tree4d3f22be30636050b4145a1aaa2c6c09d90261cf /drivers/input/touchscreen
parente77c3e16ddd26660ebb3828b0deeff2a7cd05147 (diff)
atmel: touch: Fix build error when PM_SLEEP is not selected
Change-Id: I08eb7b5ad1c70b84ff40ba75a29913b61634d0f0 Signed-off-by: Scott Williams <scwilliams@nvidia.com> Reviewed-on: http://git-master/r/48786 Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com> Rebase-Id: Rc7ac5d5153d845c8be10dbe79f57083fb1919760
Diffstat (limited to 'drivers/input/touchscreen')
-rw-r--r--drivers/input/touchscreen/atmel_mxt_ts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c
index c9527efaffda..742c5131331f 100644
--- a/drivers/input/touchscreen/atmel_mxt_ts.c
+++ b/drivers/input/touchscreen/atmel_mxt_ts.c
@@ -1793,7 +1793,7 @@ static struct i2c_driver mxt_driver = {
.driver = {
.name = "atmel_mxt_ts",
.owner = THIS_MODULE,
-#if !defined(CONFIG_HAS_EARLYSUSPEND)
+#if defined(CONFIG_PM) && !defined(CONFIG_HAS_EARLYSUSPEND)
.pm = &mxt_pm_ops,
#endif
},