aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/sa1100-cpufreq.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2013-09-16 18:56:32 +0530
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-09-30 20:18:44 +0200
commit22c8b4f1409097c073a0f894406c8bb9525bfb68 (patch)
treed605e74dbf12d78742b9ce248af355b49552b3a7 /drivers/cpufreq/sa1100-cpufreq.c
parentcpufreq: s5pv210: use cpufreq_table_validate_and_show() (diff)
downloadlinux-dev-22c8b4f1409097c073a0f894406c8bb9525bfb68.tar.xz
linux-dev-22c8b4f1409097c073a0f894406c8bb9525bfb68.zip
cpufreq: sa11x0: Expose frequency table
This patch exposes sa11x0's frequency table to cpufreq core. It always existed but not as an array frequencies and not in the format cpufreq core wants it to. Also it was present in the unit of 100kHz earlier which is made consistent with cpufreq core now, i.e. kHz. 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/sa1100-cpufreq.c')
-rw-r--r--drivers/cpufreq/sa1100-cpufreq.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/cpufreq/sa1100-cpufreq.c b/drivers/cpufreq/sa1100-cpufreq.c
index cff18e87ca58..1323a6986f7e 100644
--- a/drivers/cpufreq/sa1100-cpufreq.c
+++ b/drivers/cpufreq/sa1100-cpufreq.c
@@ -224,7 +224,8 @@ static int __init sa1100_cpu_init(struct cpufreq_policy *policy)
policy->cpuinfo.min_freq = 59000;
policy->cpuinfo.max_freq = 287000;
policy->cpuinfo.transition_latency = CPUFREQ_ETERNAL;
- return 0;
+
+ return cpufreq_table_validate_and_show(policy, sa11x0_freq_table);
}
static struct cpufreq_driver sa1100_driver __refdata = {