summaryrefslogtreecommitdiff
path: root/drivers/cpufreq/sa1110-cpufreq.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2013-09-16 17:26:33 +0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-09-30 22:18:44 +0400
commit53862f7a0b75f3d8e7445b864aa45cfa4aa49570 (patch)
tree446aacf30344debc7fab9f10e4261cb77a32ce27 /drivers/cpufreq/sa1110-cpufreq.c
parent22c8b4f1409097c073a0f894406c8bb9525bfb68 (diff)
downloadlinux-53862f7a0b75f3d8e7445b864aa45cfa4aa49570.tar.xz
cpufreq: sa11x0: let cpufreq core initialize struct policy fields
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>
Diffstat (limited to 'drivers/cpufreq/sa1110-cpufreq.c')
-rw-r--r--drivers/cpufreq/sa1110-cpufreq.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/cpufreq/sa1110-cpufreq.c b/drivers/cpufreq/sa1110-cpufreq.c
index adb05247c1c4..13760fc63859 100644
--- a/drivers/cpufreq/sa1110-cpufreq.c
+++ b/drivers/cpufreq/sa1110-cpufreq.c
@@ -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);