Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
soc: imx: gpcv2: Fix clock disabling imbalance in error path
[ Upstream commit fa231be ] The imx_pgc_power_down() starts by enabling the domain clocks, and thus disables them in the error path. Commit 18c9857 ("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: 18c9857 ("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
- Loading branch information