diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2015-03-20 17:20:33 +0000 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2015-03-22 22:19:12 +0100 |
commit | 446d999c1c92cec996e759dc3c03110596e626f5 (patch) | |
tree | 08b831e2ec37158d29fd037f7aaa61001c180425 /MAINTAINERS | |
parent | 6d7d5c3266aa946b2049d9fed02186c1a378621b (diff) | |
download | talos-obmc-linux-446d999c1c92cec996e759dc3c03110596e626f5.tar.gz talos-obmc-linux-446d999c1c92cec996e759dc3c03110596e626f5.zip |
PM / domains: factor out code to get the generic PM domain from a struct device
The PM domain code contains two methods to get the generic PM domain
for a struct device. One is dev_to_genpd() which is only safe when
we know for certain that the device has a generic PM domain attached.
The other is coded into genpd_dev_pm_detach() which ensures that the
PM domain in the struct device is a generic PM domain (and so is safer).
This commit factors out the safer version, documents it, and hides the
unsafe dev_to_genpd().
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'MAINTAINERS')
0 files changed, 0 insertions, 0 deletions