Commit 574e0aa5 authored by Russell King's avatar Russell King

[CPUFREQ] Make sa11x0_ppcr_to_freq return in units of kHz, not 100kHz.

parent ad5c555e
...@@ -65,10 +65,10 @@ unsigned int sa11x0_freq_to_ppcr(unsigned int khz) ...@@ -65,10 +65,10 @@ unsigned int sa11x0_freq_to_ppcr(unsigned int khz)
unsigned int sa11x0_ppcr_to_freq(unsigned int idx) unsigned int sa11x0_ppcr_to_freq(unsigned int idx)
{ {
if (idx >= NR_FREQS) unsigned int freq = 0;
return 0; if (idx < NR_FREQS)
else freq = cclk_frequency_100khz[idx] * 100;
return cclk_frequency_100khz[idx]; return freq;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment