]> git.proxmox.com Git - mirror_ubuntu-disco-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)
commit92e7f04a7fcc9e7f5955f3337e26ca4ac2ae387b
tree227ac49d4bb7b75ed0f4aade2ea836fcb50cf231
parent4c5591c1eee54b7775ea63635ae310a29f0207bb
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