From: Rafael J. Wysocki Date: Tue, 1 May 2012 19:33:53 +0000 (+0200) Subject: PM / Domains: Make device removal more straightforward X-Git-Tag: v3.5-rc1~116^2~4^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=efa6902501ffc87d69bfb10b8a09b7d6ee222d77;p=pandora-kernel.git PM / Domains: Make device removal more straightforward The removal of a device from a PM domain doesn't have to browse the domain's device list, because it can check directly if the device belongs to the given domain. Moreover, it should clear the domain_data pointer in dev->power.subsys_data, because dev_pm_put_subsys_data(dev) may not remove dev->power.subsys_data and the stale domain data pointer may cause problems to happen. Rework pm_genpd_remove_device() taking the above observations into account. Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed