diff options
Diffstat (limited to 'drivers/cpufreq/speedstep-ich.c')
-rw-r--r-- | drivers/cpufreq/speedstep-ich.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/cpufreq/speedstep-ich.c b/drivers/cpufreq/speedstep-ich.c index 5355abb69afc..86a184eaa815 100644 --- a/drivers/cpufreq/speedstep-ich.c +++ b/drivers/cpufreq/speedstep-ich.c | |||
@@ -320,7 +320,6 @@ static void get_freqs_on_cpu(void *_get_freqs) | |||
320 | 320 | ||
321 | static int speedstep_cpu_init(struct cpufreq_policy *policy) | 321 | static int speedstep_cpu_init(struct cpufreq_policy *policy) |
322 | { | 322 | { |
323 | int result; | ||
324 | unsigned int policy_cpu, speed; | 323 | unsigned int policy_cpu, speed; |
325 | struct get_freqs gf; | 324 | struct get_freqs gf; |
326 | 325 | ||
@@ -349,13 +348,7 @@ static int speedstep_cpu_init(struct cpufreq_policy *policy) | |||
349 | /* cpuinfo and default policy values */ | 348 | /* cpuinfo and default policy values */ |
350 | policy->cur = speed; | 349 | policy->cur = speed; |
351 | 350 | ||
352 | result = cpufreq_frequency_table_cpuinfo(policy, speedstep_freqs); | 351 | return cpufreq_table_validate_and_show(policy, speedstep_freqs); |
353 | if (result) | ||
354 | return result; | ||
355 | |||
356 | cpufreq_frequency_table_get_attr(speedstep_freqs, policy->cpu); | ||
357 | |||
358 | return 0; | ||
359 | } | 352 | } |
360 | 353 | ||
361 | 354 | ||