summaryrefslogtreecommitdiff
path: root/drivers/cpufreq/mvebu-cpufreq.c
diff options
context:
space:
mode:
authorGregory CLEMENT <gregory.clement@free-electrons.com>2017-12-13 20:29:13 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2017-12-16 04:29:42 +0300
commitb3371600926638842c460d652599c4dddef72da6 (patch)
tree4df9f1c31e2e4e0af944594f77247d0ebd106253 /drivers/cpufreq/mvebu-cpufreq.c
parent16630642f174cfc9b169c39cc74ec8e1360a9c55 (diff)
downloadlinux-b3371600926638842c460d652599c4dddef72da6.tar.xz
cpufreq: mvebu: Free the clock reference in the normal path
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>
Diffstat (limited to 'drivers/cpufreq/mvebu-cpufreq.c')
-rw-r--r--drivers/cpufreq/mvebu-cpufreq.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/cpufreq/mvebu-cpufreq.c b/drivers/cpufreq/mvebu-cpufreq.c
index ed915ee85dd9..c043aad8e3a0 100644
--- a/drivers/cpufreq/mvebu-cpufreq.c
+++ b/drivers/cpufreq/mvebu-cpufreq.c
@@ -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);