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)
committerSimon Horman <horms+renesas@verge.net.au>
Fri, 5 Dec 2014 01:11:14 +0000 (10:11 +0900)
commit5973c5d3b7b1c48511bf7db863cff459ded6f9ef
treef9b7670d3d0b74e7af0c4a4fcbcf5fd7e755494b
parent3f24140ff66ec61af497d4fb6d9bae0d9ebf2aca
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>
(cherry picked from commit 5f59df79837bb809f3945613aba5519cd9755a53)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
drivers/base/power/runtime.c