diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-04-29 19:20:02 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-04-29 21:28:33 -0400 |
commit | 8070d0532a7bbe988df4b4360ce739a34a59d199 (patch) | |
tree | 0ea70ea3a4826e9b2c98a499af7042fad9840626 | |
parent | 7d17158c0159e30e968a187cf964a145b9336ab7 (diff) |
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 <jg1.han@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | drivers/rtc/rtc-tps6586x.c | 5 |
1 files changed, 2 insertions, 3 deletions
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) | |||
333 | } | 333 | } |
334 | #endif | 334 | #endif |
335 | 335 | ||
336 | static const struct dev_pm_ops tps6586x_pm_ops = { | 336 | static SIMPLE_DEV_PM_OPS(tps6586x_pm_ops, tps6586x_rtc_suspend, |
337 | SET_SYSTEM_SLEEP_PM_OPS(tps6586x_rtc_suspend, tps6586x_rtc_resume) | 337 | tps6586x_rtc_resume); |
338 | }; | ||
339 | 338 | ||
340 | static struct platform_driver tps6586x_rtc_driver = { | 339 | static struct platform_driver tps6586x_rtc_driver = { |
341 | .driver = { | 340 | .driver = { |