From: Jingoo Han Date: Wed, 20 Mar 2013 04:08:23 +0000 (+1100) Subject: rtc: rtc-tps6586x: switch to using SIMPLE_DEV_PM_OPS X-Git-Tag: next-20130322~1^2~122 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b838470a2646688b9ddf8990f3afd98d07c6831f;p=karo-tx-linux.git rtc: rtc-tps6586x: switch to using SIMPLE_DEV_PM_OPS Switch to using the SIMPLE_DEV_PM_OPS macro to declare the driver's pm_ops. It reduces code size. Signed-off-by: Jingoo Han Signed-off-by: Andrew Morton --- diff --git a/drivers/rtc/rtc-tps6586x.c b/drivers/rtc/rtc-tps6586x.c index b6aab9f80f73..badfea491a93 100644 --- a/drivers/rtc/rtc-tps6586x.c +++ b/drivers/rtc/rtc-tps6586x.c @@ -333,9 +333,8 @@ static int tps6586x_rtc_resume(struct device *dev) } #endif -static const struct dev_pm_ops tps6586x_pm_ops = { - SET_SYSTEM_SLEEP_PM_OPS(tps6586x_rtc_suspend, tps6586x_rtc_resume) -}; +static SIMPLE_DEV_PM_OPS(tps6586x_pm_ops, tps6586x_rtc_suspend, + tps6586x_rtc_resume); static struct platform_driver tps6586x_rtc_driver = { .driver = {