projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1f99e4
)
dm: core: Set correct "status" value for a node
author
Bin Meng
<bmeng.cn@gmail.com>
Fri, 5 Jul 2019 16:23:17 +0000
(09:23 -0700)
committer
Simon Glass
<sjg@chromium.org>
Wed, 24 Jul 2019 19:54:08 +0000
(12:54 -0700)
Per device tree spec, "status" property can have a value of "okay",
or "disabled", but not "disable".
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/core/ofnode.c
patch
|
blob
|
history
diff --git
a/drivers/core/ofnode.c
b/drivers/core/ofnode.c
index 179a6447dc6731661321e08295d2f91c5f7b9da9..2ac73af93434faef4faae526cf055fad5ac513d9 100644
(file)
--- a/
drivers/core/ofnode.c
+++ b/
drivers/core/ofnode.c
@@
-884,5
+884,5
@@
int ofnode_set_enabled(ofnode node, bool value)
if (value)
return ofnode_write_string(node, "status", "okay");
else
- return ofnode_write_string(node, "status", "disable");
+ return ofnode_write_string(node, "status", "disable
d
");
}