cpufreq: exynos: use cpufreq_table_validate_and_show()
authorViresh Kumar <viresh.kumar@linaro.org>
Mon, 16 Sep 2013 13:26:16 +0000 (18:56 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 30 Sep 2013 18:18:42 +0000 (20:18 +0200)
Lets use cpufreq_table_validate_and_show() instead of calling
cpufreq_frequency_table_cpuinfo() and cpufreq_frequency_table_get_attr().

Cc: Kukjin Kim <kgene.kim@samsung.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/exynos-cpufreq.c
drivers/cpufreq/exynos5440-cpufreq.c

index 0fac34439e3171dbc97b8f717a935b691657cba9..954baed958998f12ccd7d28379e71bc2e1c44dac 100644 (file)
@@ -249,14 +249,12 @@ static int exynos_cpufreq_cpu_init(struct cpufreq_policy *policy)
 {
        policy->cur = policy->min = policy->max = exynos_getspeed(policy->cpu);
 
-       cpufreq_frequency_table_get_attr(exynos_info->freq_table, policy->cpu);
-
        /* set the transition latency value */
        policy->cpuinfo.transition_latency = 100000;
 
        cpumask_setall(policy->cpus);
 
-       return cpufreq_frequency_table_cpuinfo(policy, exynos_info->freq_table);
+       return cpufreq_table_validate_and_show(policy, exynos_info->freq_table);
 }
 
 static int exynos_cpufreq_cpu_exit(struct cpufreq_policy *policy)
index be5380ecdcd43f95c4aa88a62389c184597f3971..b62967148c80054b09b3de464a99d8302435da24 100644 (file)
@@ -326,7 +326,7 @@ static int exynos_cpufreq_cpu_init(struct cpufreq_policy *policy)
 {
        int ret;
 
-       ret = cpufreq_frequency_table_cpuinfo(policy, dvfs_info->freq_table);
+       ret = cpufreq_table_validate_and_show(policy, dvfs_info->freq_table);
        if (ret) {
                dev_err(dvfs_info->dev, "Invalid frequency table: %d\n", ret);
                return ret;
@@ -336,8 +336,6 @@ static int exynos_cpufreq_cpu_init(struct cpufreq_policy *policy)
        policy->cpuinfo.transition_latency = dvfs_info->latency;
        cpumask_setall(policy->cpus);
 
-       cpufreq_frequency_table_get_attr(dvfs_info->freq_table, policy->cpu);
-
        return 0;
 }