aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/omap-cpufreq.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2013-04-01 08:57:48 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-04-02 09:26:32 -0400
commiteb2f50ff93f08c8001d0d7e1148948ba80989aaf (patch)
tree8e598c3c7e47ce6c79e98a9d2eb91e7e555ee61f /drivers/cpufreq/omap-cpufreq.c
parent8a00627a187dca212c43a511852f06dd2c94b9aa (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/omap-cpufreq.c')
-rw-r--r--drivers/cpufreq/omap-cpufreq.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/cpufreq/omap-cpufreq.c b/drivers/cpufreq/omap-cpufreq.c
index b610edd820b1..ad7549c13ed2 100644
--- a/drivers/cpufreq/omap-cpufreq.c
+++ b/drivers/cpufreq/omap-cpufreq.c
@@ -177,7 +177,7 @@ static int __cpuinit omap_cpu_init(struct cpufreq_policy *policy)
177 goto fail_ck; 177 goto fail_ck;
178 } 178 }
179 179
180 policy->cur = policy->min = policy->max = omap_getspeed(policy->cpu); 180 policy->cur = omap_getspeed(policy->cpu);
181 181
182 if (!freq_table) 182 if (!freq_table)
183 result = opp_init_cpufreq_table(mpu_dev, &freq_table); 183 result = opp_init_cpufreq_table(mpu_dev, &freq_table);
@@ -196,8 +196,6 @@ static int __cpuinit omap_cpu_init(struct cpufreq_policy *policy)
196 196
197 cpufreq_frequency_table_get_attr(freq_table, policy->cpu); 197 cpufreq_frequency_table_get_attr(freq_table, policy->cpu);
198 198
199 policy->min = policy->cpuinfo.min_freq;
200 policy->max = policy->cpuinfo.max_freq;
201 policy->cur = omap_getspeed(policy->cpu); 199 policy->cur = omap_getspeed(policy->cpu);
202 200
203 /* 201 /*