Commit 9634c152 authored by Fabio Estevam's avatar Fabio Estevam Committed by Dmitry Torokhov

Input: mcs5000_ts - remove ifdef around power management methods

We can annonate the suspend/resume functions with '__maybe_unused' and get
rid of the ifdef, which makes the code smaller and simpler.
Signed-off-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent f1e31b02
...@@ -248,8 +248,7 @@ static int mcs5000_ts_probe(struct i2c_client *client, ...@@ -248,8 +248,7 @@ static int mcs5000_ts_probe(struct i2c_client *client,
return 0; return 0;
} }
#ifdef CONFIG_PM_SLEEP static int __maybe_unused mcs5000_ts_suspend(struct device *dev)
static int mcs5000_ts_suspend(struct device *dev)
{ {
struct i2c_client *client = to_i2c_client(dev); struct i2c_client *client = to_i2c_client(dev);
...@@ -259,7 +258,7 @@ static int mcs5000_ts_suspend(struct device *dev) ...@@ -259,7 +258,7 @@ static int mcs5000_ts_suspend(struct device *dev)
return 0; return 0;
} }
static int mcs5000_ts_resume(struct device *dev) static int __maybe_unused mcs5000_ts_resume(struct device *dev)
{ {
struct i2c_client *client = to_i2c_client(dev); struct i2c_client *client = to_i2c_client(dev);
struct mcs5000_ts_data *data = i2c_get_clientdata(client); struct mcs5000_ts_data *data = i2c_get_clientdata(client);
...@@ -269,7 +268,6 @@ static int mcs5000_ts_resume(struct device *dev) ...@@ -269,7 +268,6 @@ static int mcs5000_ts_resume(struct device *dev)
return 0; return 0;
} }
#endif
static SIMPLE_DEV_PM_OPS(mcs5000_ts_pm, mcs5000_ts_suspend, mcs5000_ts_resume); static SIMPLE_DEV_PM_OPS(mcs5000_ts_pm, mcs5000_ts_suspend, mcs5000_ts_resume);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment