diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2014-08-28 01:52:25 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-09-08 19:44:40 -0400 |
commit | ed4b053cb864f29f57cf5a4c3f3c85cda22edaf1 (patch) | |
tree | 34a673db9f43ca3dce17f3dc5f7d4492b3cd6361 /drivers/cpufreq/cpufreq-cpu0.c | |
parent | 748c876634870f8e535ddebd76f409f0477d3dd4 (diff) |
cpufreq: cpu0: don't validate clock on clk_put()
CPU clk is not optional for this driver and probe would fail if it couldn't find
a suitable clock.
And so, while calling clk_put() we don't need to validate clocks.
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Tested-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/cpufreq-cpu0.c')
-rw-r--r-- | drivers/cpufreq/cpufreq-cpu0.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/cpufreq/cpufreq-cpu0.c b/drivers/cpufreq/cpufreq-cpu0.c index 4cfde6340967..d2dc9216a2f2 100644 --- a/drivers/cpufreq/cpufreq-cpu0.c +++ b/drivers/cpufreq/cpufreq-cpu0.c | |||
@@ -217,8 +217,7 @@ static int cpu0_cpufreq_probe(struct platform_device *pdev) | |||
217 | out_free_table: | 217 | out_free_table: |
218 | dev_pm_opp_free_cpufreq_table(cpu_dev, &freq_table); | 218 | dev_pm_opp_free_cpufreq_table(cpu_dev, &freq_table); |
219 | out_put_clk: | 219 | out_put_clk: |
220 | if (!IS_ERR(cpu_clk)) | 220 | clk_put(cpu_clk); |
221 | clk_put(cpu_clk); | ||
222 | out_put_reg: | 221 | out_put_reg: |
223 | if (!IS_ERR(cpu_reg)) | 222 | if (!IS_ERR(cpu_reg)) |
224 | regulator_put(cpu_reg); | 223 | regulator_put(cpu_reg); |