mirror of
https://github.com/torvalds/linux.git
synced 2026-05-21 13:27:57 +02:00
soc: imx: gpcv2: Fix clock disabling imbalance in error path
The imx_pgc_power_down() starts by enabling the domain clocks, and thus disables them in the error path. Commit18c98573a4("soc: imx: gpcv2: add domain option to keep domain clocks enabled") made the clock enable conditional, but forgot to add the same condition to the error path. This can result in a clock enable/disable imbalance. Fix it. Fixes:18c98573a4("soc: imx: gpcv2: add domain option to keep domain clocks enabled") Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
This commit is contained in:
parent
45d941f67b
commit
fa231bef3b
|
|
@ -382,7 +382,8 @@ static int imx_pgc_power_down(struct generic_pm_domain *genpd)
|
|||
return 0;
|
||||
|
||||
out_clk_disable:
|
||||
clk_bulk_disable_unprepare(domain->num_clks, domain->clks);
|
||||
if (!domain->keep_clocks)
|
||||
clk_bulk_disable_unprepare(domain->num_clks, domain->clks);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user