cpufreq: tegra194: Fix an error handling path in tegra194_cpufreq_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Tue, 25 Apr 2023 13:11:19 +0000 (15:11 +0200)
committerViresh Kumar <viresh.kumar@linaro.org>
Thu, 11 May 2023 09:02:50 +0000 (14:32 +0530)
commit9ab24b0486681ecc059ee766e00d9570c6311e08
tree9b78a953f3483194910567595ba7974ab2ccf8ad
parent4b4c0d37164c296efbdbceacb8d2535a3910b13e
cpufreq: tegra194: Fix an error handling path in tegra194_cpufreq_probe()

If the probe needs to be deferred, some resources still need to be
released. So branch to the error handling path instead of returning
directly.

Fixes: f41e1442ac5b ("cpufreq: tegra194: add OPP support and set bandwidth")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Sumit Gupta <sumitg@nvidia.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/tegra194-cpufreq.c