]> git.baikalelectronics.ru Git - kernel.git/commit
PM / Domains: Ensure subdomain is not in use before removing
authorJon Hunter <jonathanh@nvidia.com>
Thu, 3 Sep 2015 08:10:37 +0000 (09:10 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 5 Sep 2015 01:33:19 +0000 (03:33 +0200)
commit8498ddb631451cf3d7811c54ea0354f24e69dca2
treec1c6bfaf9597591c7c987315b25bd5f6e429a202
parent43fd08cd7eb0a1f7c7eb4a01eefe5e001515747d
PM / Domains: Ensure subdomain is not in use before removing

The function pm_genpd_remove_subdomain() removes a subdomain from a
generic PM domain, however, it does not check if the subdomain has any
slave domains or device attached before doing so. Therefore, add a test
to verify that the subdomain does not have any slave domains associated
or any device attached before removing.

Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Acked-by: Kevin Hilman <khilman@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/domain.c