Re: [PATCH] leds: Convert led class driver from legacy pm ops to dev_pm_ops

2013-06-20 Thread Bryan Wu
On Thu, Jun 20, 2013 at 12:08 PM, Shuah Khan wrote: > 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

[PATCH] leds: Convert led class driver from legacy pm ops to dev_pm_ops

2013-06-20 Thread Shuah Khan
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 op