diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2014-07-30 14:34:31 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2014-07-31 01:52:55 -0400 |
commit | f1e31b02b95a70c0770bf91ec440ae242432f4b7 (patch) | |
tree | 9ce2b55256e15de27c0dad9e0c58ab56cb897604 /drivers/input/touchscreen | |
parent | a1cd3fd09a9b7de710d705127aa616946b567d72 (diff) |
Input: mcs5000_ts - protect PM functions with CONFIG_PM_SLEEP
When a kernel has CONFIG_PM=y and CONFIG_PM_SLEEP=n the following warnings are
seen:
drivers/input/touchscreen/mcs5000_ts.c:252:12: warning: 'mcs5000_ts_suspend' defined but not used [-Wunused-function]
static int mcs5000_ts_suspend(struct device *dev)
^
drivers/input/touchscreen/mcs5000_ts.c:262:12: warning: 'mcs5000_ts_resume' defined but not used [-Wunused-function]
static int mcs5000_ts_resume(struct device *dev)
Protect the suspend/resume functions with CONFIG_PM_SLEEP in order to fix these
build warnings.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/touchscreen')
-rw-r--r-- | drivers/input/touchscreen/mcs5000_ts.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/mcs5000_ts.c b/drivers/input/touchscreen/mcs5000_ts.c index 00510a9836b3..1fb760c0ba86 100644 --- a/drivers/input/touchscreen/mcs5000_ts.c +++ b/drivers/input/touchscreen/mcs5000_ts.c | |||
@@ -248,7 +248,7 @@ static int mcs5000_ts_probe(struct i2c_client *client, | |||
248 | return 0; | 248 | return 0; |
249 | } | 249 | } |
250 | 250 | ||
251 | #ifdef CONFIG_PM | 251 | #ifdef CONFIG_PM_SLEEP |
252 | static int mcs5000_ts_suspend(struct device *dev) | 252 | static int mcs5000_ts_suspend(struct device *dev) |
253 | { | 253 | { |
254 | struct i2c_client *client = to_i2c_client(dev); | 254 | struct i2c_client *client = to_i2c_client(dev); |