Skip to content

Commit 1e49a79

Browse files
digetxgregkh
authored andcommitted
soc/tegra: pmc: Fix imbalanced clock disabling in error code path
commit 19221e3 upstream. The tegra_powergate_power_up() has a typo in the error code path where it will try to disable clocks twice, fix it. In practice that error never happens, so this is a minor correction. Tested-by: Peter Geis <pgwipeout@gmail.com> # Ouya T30 Tested-by: Nicolas Chauvet <kwizart@gmail.com> # PAZ00 T20 and TK1 T124 Tested-by: Matt Merhar <mattmerhar@protonmail.com> # Ouya T30 Signed-off-by: Dmitry Osipenko <digetx@gmail.com> Signed-off-by: Thierry Reding <treding@nvidia.com> Cc: Guenter Roeck <linux@roeck-us.net> Cc: Anders Roxell <anders.roxell@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 45490bf commit 1e49a79

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/soc/tegra/pmc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ static int tegra_powergate_power_up(struct tegra_powergate *pg,
693693

694694
err = tegra_powergate_enable_clocks(pg);
695695
if (err)
696-
goto disable_clks;
696+
goto powergate_off;
697697

698698
usleep_range(10, 20);
699699

0 commit comments

Comments
 (0)