cpufreq: free clk if failed to set 1G for fixpll when cpufreq init. [1/1]

PD#SWPL-6394

Problem:
free clk if failed to set 1G for fixpll.

Solution:
free clk if failed to set 1G for fixpll..

Verify:
test pass on A311D-W400

Change-Id: I1a7af6fe459c067e34ff8752453a1a04985edb88
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
This commit is contained in:
Hong Guo
2019-03-26 15:47:49 +08:00
committed by Luan Yuan
parent 826ef2cb51
commit 288477eef5

View File

@@ -430,7 +430,7 @@ static int meson_cpufreq_init(struct cpufreq_policy *policy)
if (ret) {
pr_err("%s: error in setting low_freq_clk_p rate!\n",
__func__);
return ret;
goto free_clk;
}
high_freq_clk_p = of_clk_get_by_name(np, HIGH_FREQ_CLK_PARENT);