]> 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>
Wed, 19 Jun 2013 00:08:10 +0000 (10:08 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:27:35 +0000 (17:27 +1000)
commitf1c4672989f94be38b298f1ff968e22955148459
treea7c287166aa00e34f1f5133abec0016f0d6da69c
parent528fbddad4a0c075da43df813ad4fa9664c86003
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