From: Ulf Hansson Date: Fri, 19 Sep 2014 18:27:37 +0000 (+0200) Subject: PM / Domains: Add APIs to attach/detach a PM domain for a device X-Git-Tag: fixes-against-v3.18-rc2~138^2~5^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46420dd73b800f87a19af13af5883855cf38cb08;p=pandora-kernel.git PM / Domains: Add APIs to attach/detach a PM domain for a device To maintain scalability let's add common methods to attach and detach a PM domain for a device, dev_pm_domain_attach|detach(). Typically dev_pm_domain_attach() shall be invoked from subsystem level code at the probe phase to try to attach a device to its PM domain. The reversed actions may be done a the remove phase and then by invoking dev_pm_domain_detach(). When attachment succeeds, the attach function should assign its corresponding detach function to a new ->detach() callback added in the struct dev_pm_domain. Signed-off-by: Ulf Hansson Tested-by: Philipp Zabel Reviewed-by: Kevin Hilman Reviewed-by: Dmitry Torokhov Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed