PM / Domains: Try power off masters in error path of __pm_genpd_poweron()
authorUlf Hansson <ulf.hansson@linaro.org>
Wed, 2 Sep 2015 08:16:13 +0000 (10:16 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 3 Sep 2015 00:53:53 +0000 (02:53 +0200)
commit29e47e2173349ee06bd339f7753821c720d50923
treec384b54f97ee0a47d125d21637948d1a47525897
parent8bb6944e5aabaf9b7977502667a6981733564f85
PM / Domains: Try power off masters in error path of __pm_genpd_poweron()

While powering up a genpd, its domain masters are first being powered up.
In the error path of __pm_genpd_poweron(), we didn't care to try power off
these domain masters. Let's deal with that to avoid leaving unused PM
domains powered.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/domain.c