projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
aspeed: Add support for Clocks needed by MACs
[oweals/u-boot.git]
/
cmd
/
regulator.c
diff --git
a/cmd/regulator.c
b/cmd/regulator.c
index bfea6e04b6746dbb5d8efaa26073761ad9d390f9..2ef5bc9a828967f913b3d13a16f62f05342ff839 100644
(file)
--- a/
cmd/regulator.c
+++ b/
cmd/regulator.c
@@
-292,7
+292,10
@@
static int do_value(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
return CMD_RET_FAILURE;
}
return CMD_RET_FAILURE;
}
- ret = regulator_set_value(dev, value);
+ if (!force)
+ ret = regulator_set_value(dev, value);
+ else
+ ret = regulator_set_value_force(dev, value);
if (ret) {
printf("Regulator: %s - can't set the Voltage!\n",
uc_pdata->name);
if (ret) {
printf("Regulator: %s - can't set the Voltage!\n",
uc_pdata->name);