diff --git a/[refs] b/[refs] index 4b7c1b2a66fe..e307abf11acf 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 030853b7abdd6effb9cb44f29e60d1d7a9592210 +refs/heads/master: 3e59091828ed5406c879b899b4257fcef7271e2c diff --git a/trunk/drivers/regulator/core.c b/trunk/drivers/regulator/core.c index 2f14c16f58c3..98c3a74e9949 100644 --- a/trunk/drivers/regulator/core.c +++ b/trunk/drivers/regulator/core.c @@ -703,10 +703,13 @@ static int set_machine_constraints(struct regulator_dev *rdev, int cmin = constraints->min_uV; int cmax = constraints->max_uV; - /* it's safe to autoconfigure fixed-voltage supplies */ + /* it's safe to autoconfigure fixed-voltage supplies + and the constraints are used by list_voltage. */ if (count == 1 && !cmin) { - cmin = INT_MIN; + cmin = 1; cmax = INT_MAX; + constraints->min_uV = cmin; + constraints->max_uV = cmax; } /* voltage constraints are optional */