Commit 3db8a537 authored by Dmitry Torokhov's avatar Dmitry Torokhov

Input: ucb1400_ts - convert to use dev_pm_ops

Instead of using legacy PM interfaces switch to using dev_pm_ops.
Acked-by: default avatarMarek Vasut <marek.vasut@gmail.com>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent ee9dfd7a
...@@ -428,10 +428,10 @@ static int ucb1400_ts_remove(struct platform_device *dev) ...@@ -428,10 +428,10 @@ static int ucb1400_ts_remove(struct platform_device *dev)
return 0; return 0;
} }
#ifdef CONFIG_PM #ifdef CONFIG_PM_SLEEP
static int ucb1400_ts_resume(struct platform_device *dev) static int ucb1400_ts_resume(struct device *dev)
{ {
struct ucb1400_ts *ucb = dev->dev.platform_data; struct ucb1400_ts *ucb = dev->platform_data;
if (ucb->ts_task) { if (ucb->ts_task) {
/* /*
...@@ -444,16 +444,16 @@ static int ucb1400_ts_resume(struct platform_device *dev) ...@@ -444,16 +444,16 @@ static int ucb1400_ts_resume(struct platform_device *dev)
} }
return 0; return 0;
} }
#else
#define ucb1400_ts_resume NULL
#endif #endif
static SIMPLE_DEV_PM_OPS(ucb1400_ts_pm_ops, NULL, ucb1400_ts_resume);
static struct platform_driver ucb1400_ts_driver = { static struct platform_driver ucb1400_ts_driver = {
.probe = ucb1400_ts_probe, .probe = ucb1400_ts_probe,
.remove = ucb1400_ts_remove, .remove = ucb1400_ts_remove,
.resume = ucb1400_ts_resume,
.driver = { .driver = {
.name = "ucb1400_ts", .name = "ucb1400_ts",
.pm = &ucb1400_ts_pm_ops,
}, },
}; };
module_platform_driver(ucb1400_ts_driver); module_platform_driver(ucb1400_ts_driver);
......
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