mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
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: Simon Glass <sjg@chromium.org> Acked-by: Przemyslaw Marczak <p.marczak@samsung.com>
This commit is contained in:
parent
75a429f1a2
commit
d08504d18a
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue