From: Dmitry Torokhov Date: Thu, 5 Jan 2012 06:17:57 +0000 (-0800) Subject: Input: ucb1400_ts - convert to use dev_pm_ops X-Git-Tag: v4.6-rc1~9^2~1277 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3db8a537c6e2270bb09aadc229407b3532c57a81;p=platform%2Fkernel%2Flinux-exynos.git Input: ucb1400_ts - convert to use dev_pm_ops Instead of using legacy PM interfaces switch to using dev_pm_ops. Acked-by: Marek Vasut Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/touchscreen/ucb1400_ts.c b/drivers/input/touchscreen/ucb1400_ts.c index cf2440f..dff748d 100644 --- a/drivers/input/touchscreen/ucb1400_ts.c +++ b/drivers/input/touchscreen/ucb1400_ts.c @@ -428,10 +428,10 @@ static int ucb1400_ts_remove(struct platform_device *dev) return 0; } -#ifdef CONFIG_PM -static int ucb1400_ts_resume(struct platform_device *dev) +#ifdef CONFIG_PM_SLEEP +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) { /* @@ -444,16 +444,16 @@ static int ucb1400_ts_resume(struct platform_device *dev) } return 0; } -#else -#define ucb1400_ts_resume NULL #endif +static SIMPLE_DEV_PM_OPS(ucb1400_ts_pm_ops, NULL, ucb1400_ts_resume); + static struct platform_driver ucb1400_ts_driver = { .probe = ucb1400_ts_probe, .remove = ucb1400_ts_remove, - .resume = ucb1400_ts_resume, .driver = { .name = "ucb1400_ts", + .pm = &ucb1400_ts_pm_ops, }, }; module_platform_driver(ucb1400_ts_driver);