|
@@ -231,7 +231,8 @@ unsigned long dev_pm_opp_get_max_volt_latency(struct device *dev)
|
|
|
* The caller needs to ensure that opp_table (and hence the regulator)
|
|
|
* isn't freed, while we are executing this routine.
|
|
|
*/
|
|
|
- for (i = 0; reg = regulators[i], i < count; i++) {
|
|
|
+ for (i = 0; i < count; i++) {
|
|
|
+ reg = regulators[i];
|
|
|
ret = regulator_set_voltage_time(reg, uV[i].min, uV[i].max);
|
|
|
if (ret > 0)
|
|
|
latency_ns += ret * 1000;
|