mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-18 06:58:54 +00:00
dm: power: Allow regulators to not implement all operations
Some regulators will not implement any operations (e.g. fixed regulators). This is not an error, so allow the autoset process to continue when one of these regulators is found. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
7d5779993d
commit
364809de31
1 changed files with 2 additions and 0 deletions
|
@ -334,6 +334,8 @@ int regulators_enable_boot_on(bool verbose)
|
|||
}
|
||||
if (verbose)
|
||||
regulator_show(dev, ret);
|
||||
if (ret == -ENOSYS)
|
||||
ret = 0;
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
|
Loading…
Add table
Reference in a new issue