Skip to content

Commit

Permalink
cpufreq: mvebu: Free the clock reference in the normal path
Browse files Browse the repository at this point in the history
In case of error the clock reference was freed but not in normal path
once it was nor more used. This patch fixes it.

Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Gregory CLEMENT authored and Rafael J. Wysocki committed Dec 16, 2017
1 parent 1663064 commit b337160
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/cpufreq/mvebu-cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ static int __init armada_xp_pmsu_cpufreq_init(void)
if (ret)
dev_err(cpu_dev, "%s: failed to mark OPPs as shared: %d\n",
__func__, ret);
clk_put(clk);
}

platform_device_register_simple("cpufreq-dt", -1, NULL, 0);
Expand Down

0 comments on commit b337160

Please sign in to comment.