OSDN Git Service

Merge branch 'for-linus' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie...
authorMark Brown <broonie@kernel.org>
Tue, 11 Dec 2018 20:44:49 +0000 (20:44 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 11 Dec 2018 20:44:49 +0000 (20:44 +0000)
1  2 
drivers/gpio/gpiolib.c
drivers/regulator/bd718x7-regulator.c
drivers/regulator/core.c

Simple merge
Simple merge
@@@ -1342,25 -1156,8 +1342,14 @@@ static int set_machine_constraints(stru
                        rdev_err(rdev, "failed to set initial mode: %d\n", ret);
                        return ret;
                }
 +      } else if (rdev->constraints->system_load) {
 +              /*
 +               * We'll only apply the initial system load if an
 +               * initial mode wasn't specified.
 +               */
 +              drms_uA_update(rdev);
        }
  
-       /* If the constraints say the regulator should be on at this point
-        * and we have control then make sure it is enabled.
-        */
-       if (rdev->constraints->always_on || rdev->constraints->boot_on) {
-               ret = _regulator_do_enable(rdev);
-               if (ret < 0 && ret != -EINVAL) {
-                       rdev_err(rdev, "failed to enable\n");
-                       return ret;
-               }
-       }
        if ((rdev->constraints->ramp_delay || rdev->constraints->ramp_disable)
                && ops->set_ramp_delay) {
                ret = ops->set_ramp_delay(rdev, rdev->constraints->ramp_delay);