]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
Merge remote-tracking branch 'regulator/fix/doc' into tmp
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 5 Mar 2013 02:12:39 +0000 (10:12 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 5 Mar 2013 02:12:39 +0000 (10:12 +0800)
1  2 
drivers/regulator/core.c

diff --combined drivers/regulator/core.c
index 4a7790c58257d6121231ff12139bdbdad6622c83,154bc8f0c1a055d375df911f7c63ac4d70bfcfa5..e3661c20cf389fe38bcbb9406f25476aae9d4796
@@@ -2830,7 -2830,7 +2830,7 @@@ EXPORT_SYMBOL_GPL(regulator_get_bypass_
   * regulator_allow_bypass - allow the regulator to go into bypass mode
   *
   * @regulator: Regulator to configure
-  * @allow: enable or disable bypass mode
+  * @enable: enable or disable bypass mode
   *
   * Allow the regulator to go into bypass mode if all other consumers
   * for the regulator also enable bypass mode and the machine
@@@ -3057,13 -3057,9 +3057,13 @@@ int regulator_bulk_enable(int num_consu
        return 0;
  
  err:
 -      pr_err("Failed to enable %s: %d\n", consumers[i].supply, ret);
 -      while (--i >= 0)
 -              regulator_disable(consumers[i].consumer);
 +      for (i = 0; i < num_consumers; i++) {
 +              if (consumers[i].ret < 0)
 +                      pr_err("Failed to enable %s: %d\n", consumers[i].supply,
 +                             consumers[i].ret);
 +              else
 +                      regulator_disable(consumers[i].consumer);
 +      }
  
        return ret;
  }