]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/rtc/class: convert from Legacy pm ops to dev_pm_ops
authorShuah Khan <shuah.kh@samsung.com>
Thu, 27 Jun 2013 23:53:43 +0000 (09:53 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 28 Jun 2013 06:38:51 +0000 (16:38 +1000)
commit1928bb57387d1fcca51c2ea08b9d856515f382e4
tree2ecfb2c74c0d8be422e6f895576113313cd16477
parente47b6576b0992d00b49587f5c58465e60aec1495
drivers/rtc/class: convert from Legacy pm ops to dev_pm_ops

Convert drivers/rtc/class to use dev_pm_ops for power management and
remove Legacy PM ops hooks.  With this change, rtc class registers
suspend/resume callbacks via class->pm (dev_pm_ops) instead of Legacy
class->suspend/resume.  When __device_suspend() runs call-backs, it will
find class->pm ops for the rtc class.

Signed-off-by: Shuah Khan <shuah.kh@samsung.com>
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Cc: Shuah Khan <shuahkhan@gmail.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/rtc/class.c