summaryrefslogtreecommitdiff
path: root/drivers/input
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/touchscreen/bu21013_ts.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/input/touchscreen/bu21013_ts.c b/drivers/input/touchscreen/bu21013_ts.c
index de460a41d03..ae6c0e82af2 100644
--- a/drivers/input/touchscreen/bu21013_ts.c
+++ b/drivers/input/touchscreen/bu21013_ts.c
@@ -825,7 +825,8 @@ static int __devexit bu21013_remove(struct i2c_client *client)
return 0;
}
-#if !defined(CONFIG_HAS_EARLYSUSPEND) && defined(CONFIG_PM)
+#ifndef CONFIG_HAS_EARLYSUSPEND
+#ifdef CONFIG_PM
/**
* bu21013_suspend() - suspend the touch screen controller
* @dev: pointer to device structure
@@ -860,7 +861,7 @@ static const struct dev_pm_ops bu21013_dev_pm_ops = {
.suspend = bu21013_suspend,
.resume = bu21013_resume,
};
-
+#endif
#else
static void bu21013_ts_early_suspend(struct early_suspend *data)
{