diff mbox series

[05/27] cpufreq: blackfin: Don't validate the frequency table twice

Message ID 0f944c0a7e521d42e7cd008e7341cf5515856076.1519620578.git.viresh.kumar@linaro.org
State New
Headers show
Series cpufreq: Stop validating cpufreq table in drivers | expand

Commit Message

Viresh Kumar Feb. 26, 2018, 5:08 a.m. UTC
The cpufreq core is already validating the CPU frequency table after
calling the ->init() callback of the cpufreq drivers and the drivers
don't need to do the same anymore. Though they need to set the
policy->freq_table field directly from the ->init() callback now.

Stop validating the frequency table from blackfin driver.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>

---
 drivers/cpufreq/blackfin-cpufreq.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

-- 
2.15.0.194.g9af6a3dea062
diff mbox series

Patch

diff --git a/drivers/cpufreq/blackfin-cpufreq.c b/drivers/cpufreq/blackfin-cpufreq.c
index 12e97d8a9db0..3f9d96c0f37e 100644
--- a/drivers/cpufreq/blackfin-cpufreq.c
+++ b/drivers/cpufreq/blackfin-cpufreq.c
@@ -186,8 +186,9 @@  static int __bfin_cpu_init(struct cpufreq_policy *policy)
 		bfin_init_tables(cclk, sclk);
 
 	policy->cpuinfo.transition_latency = 50000; /* 50us assumed */
+	policy->freq_table = bfin_freq_table;
 
-	return cpufreq_table_validate_and_show(policy, bfin_freq_table);
+	return 0;
 }
 
 static struct cpufreq_driver bfin_driver = {