From: Hong Guo Date: Tue, 26 Mar 2019 07:47:49 +0000 (+0800) Subject: cpufreq: free clk if failed to set 1G for fixpll when cpufreq init. [1/1] X-Git-Tag: hardkernel-4.9.236-104~1558 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b15da7ef6a1d35cd2a56dc8b8f8fd520979011ee;p=platform%2Fkernel%2Flinux-amlogic.git 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 --- diff --git a/drivers/amlogic/cpufreq/meson-cpufreq.c b/drivers/amlogic/cpufreq/meson-cpufreq.c index 20bb294..19585aff 100644 --- a/drivers/amlogic/cpufreq/meson-cpufreq.c +++ b/drivers/amlogic/cpufreq/meson-cpufreq.c @@ -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);