mirror of https://gitee.com/openkylin/linux.git
Merge remote-tracking branch 'regulator/fix/core' into tmp
This commit is contained in:
commit
5fb910d391
|
@ -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)
|
||||||
|
pr_err("Failed to enable %s: %d\n", consumers[i].supply,
|
||||||
|
consumers[i].ret);
|
||||||
|
else
|
||||||
regulator_disable(consumers[i].consumer);
|
regulator_disable(consumers[i].consumer);
|
||||||
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue