leds: Convert led class driver from legacy pm ops to dev_pm_ops
authorShuah Khan <shuah.kh@samsung.com>
Thu, 20 Jun 2013 19:08:44 +0000 (12:08 -0700)
committerBryan Wu <cooloney@gmail.com>
Fri, 21 Jun 2013 00:36:45 +0000 (17:36 -0700)
commit73e1ab41a80d36207e8ea7cc2c9897afdeeef387
treec88854d110b08c7d106c3981f4af23ca3e62ced8
parentae6cdb03ef1d352c489d6c86e0bcec51365a2c64
leds: Convert led class driver from legacy pm ops to dev_pm_ops

Convert drivers/leds/led-class to use dev_pm_ops for power management and
remove Legacy PM ops hooks. With this change, led 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 led class.

Signed-off-by: Shuah Khan <shuah.kh@samsung.com>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
drivers/leds/led-class.c