]> git.karo-electronics.de Git - linux-beck.git/commitdiff
cpufreq: sa11x0: let cpufreq core initialize struct policy fields
authorViresh Kumar <viresh.kumar@linaro.org>
Mon, 16 Sep 2013 13:26:33 +0000 (18:56 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 30 Sep 2013 18:18:44 +0000 (20:18 +0200)
Many fields of struct policy are filled by cpufreq core when we call
cpufreq_table_validate_and_show() and so cpufreq driver doesn't need to set them
anymore.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/sa1100-cpufreq.c
drivers/cpufreq/sa1110-cpufreq.c

index 1323a6986f7ed005ea419341caaf268b87339645..37fce2f15711f85575a72353d49d8f106ef6169b 100644 (file)
@@ -220,9 +220,7 @@ static int __init sa1100_cpu_init(struct cpufreq_policy *policy)
 {
        if (policy->cpu != 0)
                return -EINVAL;
-       policy->cur = policy->min = policy->max = sa11x0_getspeed(0);
-       policy->cpuinfo.min_freq = 59000;
-       policy->cpuinfo.max_freq = 287000;
+       policy->cur = sa11x0_getspeed(0);
        policy->cpuinfo.transition_latency = CPUFREQ_ETERNAL;
 
        return cpufreq_table_validate_and_show(policy, sa11x0_freq_table);
index adb05247c1c49b077897cb02cc42785769a77ca6..13760fc63859dabe1d002258915cfd8e95b63e26 100644 (file)
@@ -334,9 +334,7 @@ static int __init sa1110_cpu_init(struct cpufreq_policy *policy)
 {
        if (policy->cpu != 0)
                return -EINVAL;
-       policy->cur = policy->min = policy->max = sa11x0_getspeed(0);
-       policy->cpuinfo.min_freq = 59000;
-       policy->cpuinfo.max_freq = 287000;
+       policy->cur = sa11x0_getspeed(0);
        policy->cpuinfo.transition_latency = CPUFREQ_ETERNAL;
 
        return cpufreq_table_validate_and_show(policy, sa11x0_freq_table);