soc: rockchip: power-domain: use pm_genpd_remove in error
From: Heiko Stuebner <heiko@...> Date: Thu, 15 Sep 2016 22:55:35 +0200
Commit-Message
The newly introduced pm_genpd_remove reverts the initialization done by pm_genpd_init and is necessary in the error path of the rockchip power-domain driver. Without it the driver will in the error case cleanup the devm-allocated structures including the elements referenced in the gpd_list thus making deactivation of unused domains (and probably later genpd accesses as well) fail by accessing invalid pointers. Signed-off-by: Heiko Stuebner <heiko@...>
Patch-Comment
drivers/soc/rockchip/pm_domains.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-)
Statistics
- 10 lines added
- 1 lines removed