From b2ccf099783ffcfb04418fe26f7d989769fb66b3 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Tue, 27 Sep 2011 15:11:42 +0800 Subject: [PATCH] --- yaml --- r: 273451 b: refs/heads/master c: ded84337ac820700f1b9dda724201e64b2ad3536 h: refs/heads/master i: 273449: ddc2d75f494e3c53539eb884041b3efd5ea21e2b 273447: 2a35427e2bb52c1c1518382043faf04cfda123dc v: v3 --- [refs] | 2 +- trunk/drivers/cpufreq/db8500-cpufreq.c | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/[refs] b/[refs] index 55b31b729133..08560e350b05 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 0073f538c1c35f996982b583f5de7a6a43408b9b +refs/heads/master: ded84337ac820700f1b9dda724201e64b2ad3536 diff --git a/trunk/drivers/cpufreq/db8500-cpufreq.c b/trunk/drivers/cpufreq/db8500-cpufreq.c index e0acaceca57d..b87236add6be 100644 --- a/trunk/drivers/cpufreq/db8500-cpufreq.c +++ b/trunk/drivers/cpufreq/db8500-cpufreq.c @@ -105,7 +105,6 @@ static unsigned int db8500_cpufreq_getspeed(unsigned int cpu) static int __cpuinit db8500_cpufreq_init(struct cpufreq_policy *policy) { int res; - int i; BUILD_BUG_ON(ARRAY_SIZE(idx2opp) + 1 != ARRAY_SIZE(freq_table)); @@ -128,10 +127,6 @@ static int __cpuinit db8500_cpufreq_init(struct cpufreq_policy *policy) policy->min = policy->cpuinfo.min_freq; policy->max = policy->cpuinfo.max_freq; policy->cur = db8500_cpufreq_getspeed(policy->cpu); - - for (i = 0; freq_table[i].frequency != policy->cur; i++) - ; - policy->governor = CPUFREQ_DEFAULT_GOVERNOR; /*