aboutsummaryrefslogtreecommitdiff
path: root/drivers/power/regulator/regulator-uclass.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/power/regulator/regulator-uclass.c')
-rw-r--r--drivers/power/regulator/regulator-uclass.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/power/regulator/regulator-uclass.c b/drivers/power/regulator/regulator-uclass.c
index 77d101f..88a8525 100644
--- a/drivers/power/regulator/regulator-uclass.c
+++ b/drivers/power/regulator/regulator-uclass.c
@@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_REGULATOR
-#include <common.h>
#include <errno.h>
#include <dm.h>
#include <log.h>
@@ -518,7 +517,7 @@ int regulators_enable_boot_on(bool verbose)
dev;
uclass_next_device(&dev)) {
ret = regulator_autoset(dev);
- if (ret == -EMEDIUMTYPE) {
+ if (ret == -EMEDIUMTYPE || ret == -EALREADY) {
ret = 0;
continue;
}