Explorar o código

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>
Gregory CLEMENT %!s(int64=7) %!d(string=hai) anos
pai
achega
b337160092
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      drivers/cpufreq/mvebu-cpufreq.c

+ 1 - 0
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);