diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2013-04-01 08:57:48 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-04-02 09:26:32 -0400 |
commit | eb2f50ff93f08c8001d0d7e1148948ba80989aaf (patch) | |
tree | 8e598c3c7e47ce6c79e98a9d2eb91e7e555ee61f /drivers/cpufreq/cpufreq-nforce2.c | |
parent | 8a00627a187dca212c43a511852f06dd2c94b9aa (diff) |
cpufreq: drivers: Remove unnecessary assignments of policy-> members
Some assignments of policy-> min/max/cur/cpuinfo.min_freq/cpuinfo.max_freq
aren't required as part of it is done by cpufreq driver or cpufreq core.
Remove them.
At some places we merge multiple lines together too.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/cpufreq-nforce2.c')
-rw-r--r-- | drivers/cpufreq/cpufreq-nforce2.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/cpufreq/cpufreq-nforce2.c b/drivers/cpufreq/cpufreq-nforce2.c index 224a4787ecc2..af1542d41440 100644 --- a/drivers/cpufreq/cpufreq-nforce2.c +++ b/drivers/cpufreq/cpufreq-nforce2.c | |||
@@ -359,12 +359,10 @@ static int nforce2_cpu_init(struct cpufreq_policy *policy) | |||
359 | min_fsb = NFORCE2_MIN_FSB; | 359 | min_fsb = NFORCE2_MIN_FSB; |
360 | 360 | ||
361 | /* cpuinfo and default policy values */ | 361 | /* cpuinfo and default policy values */ |
362 | policy->cpuinfo.min_freq = min_fsb * fid * 100; | 362 | policy->min = policy->cpuinfo.min_freq = min_fsb * fid * 100; |
363 | policy->cpuinfo.max_freq = max_fsb * fid * 100; | 363 | policy->max = policy->cpuinfo.max_freq = max_fsb * fid * 100; |
364 | policy->cpuinfo.transition_latency = CPUFREQ_ETERNAL; | 364 | policy->cpuinfo.transition_latency = CPUFREQ_ETERNAL; |
365 | policy->cur = nforce2_get(policy->cpu); | 365 | policy->cur = nforce2_get(policy->cpu); |
366 | policy->min = policy->cpuinfo.min_freq; | ||
367 | policy->max = policy->cpuinfo.max_freq; | ||
368 | 366 | ||
369 | return 0; | 367 | return 0; |
370 | } | 368 | } |