Commit 5fb910d3 authored by Mark Brown's avatar Mark Brown

Merge remote-tracking branch 'regulator/fix/core' into tmp

parents 6dbe51c2 fbe31057
...@@ -3057,9 +3057,13 @@ int regulator_bulk_enable(int num_consumers, ...@@ -3057,9 +3057,13 @@ int regulator_bulk_enable(int num_consumers,
return 0; return 0;
err: err:
pr_err("Failed to enable %s: %d\n", consumers[i].supply, ret); for (i = 0; i < num_consumers; i++) {
while (--i >= 0) if (consumers[i].ret < 0)
regulator_disable(consumers[i].consumer); pr_err("Failed to enable %s: %d\n", consumers[i].supply,
consumers[i].ret);
else
regulator_disable(consumers[i].consumer);
}
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment