[U-Boot] [PATCH 3/4] dm: core: Set correct "status" value for a node
Bin Meng
bmeng.cn at gmail.com
Fri Jul 5 16:23:17 UTC 2019
Per device tree spec, "status" property can have a value of "okay",
or "disabled", but not "disable".
Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
---
drivers/core/ofnode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/core/ofnode.c b/drivers/core/ofnode.c
index c72c6e2..bbea729 100644
--- a/drivers/core/ofnode.c
+++ b/drivers/core/ofnode.c
@@ -876,5 +876,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", "disabled");
}
--
2.7.4
More information about the U-Boot
mailing list