]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Merge remote-tracking branch 'pm/linux-next'
authorStephen Rothwell <sfr@canb.auug.org.au>
Wed, 7 May 2014 02:27:33 +0000 (12:27 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 7 May 2014 02:27:33 +0000 (12:27 +1000)
Conflicts:
arch/mips/loongson/lemote-2f/clock.c

1  2 
MAINTAINERS
arch/mips/loongson/lemote-2f/clock.c

diff --cc MAINTAINERS
Simple merge
index 67dd94ef28e60f4023b16f7da8fac716c558b3bf,1eed38e28b1e19f95584f64e84c66145b2ff9638..ebfb9cd71ca1b92939346071356792df63b7a2ff
@@@ -91,10 -91,9 +91,10 @@@ EXPORT_SYMBOL(clk_put)
  
  int clk_set_rate(struct clk *clk, unsigned long rate)
  {
 +      unsigned int rate_khz = rate / 1000;
+       struct cpufreq_frequency_table *pos;
        int ret = 0;
        int regval;
-       int i;
  
        if (likely(clk->ops && clk->ops->set_rate)) {
                unsigned long flags;
        if (unlikely(clk->flags & CLK_RATE_PROPAGATES))
                propagate_rate(clk);
  
-       for (i = 0; loongson2_clockmod_table[i].frequency != CPUFREQ_TABLE_END;
-            i++) {
-               if (loongson2_clockmod_table[i].frequency ==
-                   CPUFREQ_ENTRY_INVALID)
-                       continue;
-               if (rate_khz == loongson2_clockmod_table[i].frequency)
+       cpufreq_for_each_valid_entry(pos, loongson2_clockmod_table)
 -              if (rate == pos->frequency)
++              if (rate_khz == pos->frequency)
                        break;
-       }
-       if (rate_khz != loongson2_clockmod_table[i].frequency)
 -      if (rate != pos->frequency)
++      if (rate_khz != pos->frequency)
                return -ENOTSUPP;
  
        clk->rate = rate;