From: Russell King Date: Fri, 20 Mar 2015 17:20:33 +0000 (+0000) Subject: PM / domains: factor out code to get the generic PM domain from a struct device X-Git-Tag: omap-for-v4.1/fixes-rc1~144^2~2^3~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=446d999c1c92cec996e759dc3c03110596e626f5;p=pandora-kernel.git 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 Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed