commit | 5f59df79837bb809f3945613aba5519cd9755a53 | [log] [tgz] |
---|---|---|
author | Ulf Hansson <ulf.hansson@linaro.org> | Sat Mar 01 11:56:04 2014 +0100 |
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | Sun Mar 02 00:18:15 2014 +0100 |
tree | 3ad0bfc09e8898b1f1f22c252ba8ef6bdda623b7 | |
parent | cfbf8d4857c26a8a307fb7cd258074c9dcd8c691 [diff] |
PM / runtime: Fetch runtime PM callbacks using a macro While fetching the proper runtime PM callback, we walk the hierarchy of device's power domains, subsystems and drivers. This is common for rpm_suspend(), rpm_idle() and rpm_resume(). Let's clean up the code by using a macro that handles this. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>