PM / runtime: Fetch runtime PM callbacks using a macro
authorUlf Hansson <ulf.hansson@linaro.org>
Sat, 1 Mar 2014 10:56:04 +0000 (11:56 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 1 Mar 2014 23:18:15 +0000 (00:18 +0100)
commit5f59df79837bb809f3945613aba5519cd9755a53
tree3ad0bfc09e8898b1f1f22c252ba8ef6bdda623b7
parentcfbf8d4857c26a8a307fb7cd258074c9dcd8c691
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>
drivers/base/power/runtime.c