Skip to content
Snippets Groups Projects
Commit d08504d1 authored by Simon Glass's avatar Simon Glass
Browse files

dm: power: Don't return an error when regulators are not autoset


Not all regulators can be set up automatically. Adjust the code so that
regulators_enable_boot_on() will return success when some are skipped.
Only genuine errors are reported.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
Acked-by: default avatarPrzemyslaw Marczak <p.marczak@samsung.com>
parent 75a429f1
No related branches found
No related tags found
No related merge requests found
......@@ -319,8 +319,10 @@ int regulators_enable_boot_on(bool verbose)
dev && !ret;
uclass_next_device(&dev)) {
ret = regulator_autoset(dev);
if (ret == -EMEDIUMTYPE)
if (ret == -EMEDIUMTYPE) {
ret = 0;
continue;
}
if (verbose)
regulator_show(dev, ret);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment