]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/rtc/class: convert from Legacy pm ops to dev_pm_ops
authorShuah Khan <shuah.kh@samsung.com>
Wed, 3 Jul 2013 22:07:59 +0000 (15:07 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 3 Jul 2013 23:08:00 +0000 (16:08 -0700)
commit6641ca4c6232f9903453e34627e91f51361cb292
tree227ac49d4bb7b75ed0f4aade2ea836fcb50cf231
parent01df72343a14b4451e577b3b27ebdcaaa8c5e6f4
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/class.c