dm: core: Set correct "status" value for a node
authorBin Meng <bmeng.cn@gmail.com>
Fri, 5 Jul 2019 16:23:17 +0000 (09:23 -0700)
committerSimon 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

index 179a6447dc6731661321e08295d2f91c5f7b9da9..2ac73af93434faef4faae526cf055fad5ac513d9 100644 (file)
@@ -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", "disabled");
 }