aboutsummaryrefslogtreecommitdiff
path: root/livetree.c
diff options
context:
space:
mode:
authorScott Wood <scottwood@freescale.com>2007-03-22 11:11:09 -0500
committerJon Loeliger <jdl@freescale.com>2007-03-26 08:34:23 -0500
commitb29597d9a343761f768a9d78a63f1c09e71b43d2 (patch)
tree2ec6a35c0b242a01d8d0f9835b301c1d4f741e8f /livetree.c
parent001430072fe321fe41c82478917b06c8d9ffdbbe (diff)
downloaddtc-b29597d9a343761f768a9d78a63f1c09e71b43d2.zip
dtc-b29597d9a343761f768a9d78a63f1c09e71b43d2.tar.gz
dtc-b29597d9a343761f768a9d78a63f1c09e71b43d2.tar.bz2
Remove bogus errors from check_chosen.
It is not an error for /chosen (or any of its children) to be missing. It is not a requirement that the output of dtc be a complete, valid device tree, as it may be intended that the dtb be passed through boot code that will complete it. Thus, do not complain. Signed-off-by: Scott Wood <scottwood@freescale.com> Acked-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'livetree.c')
-rw-r--r--livetree.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/livetree.c b/livetree.c
index 45642dc..ce73f50 100644
--- a/livetree.c
+++ b/livetree.c
@@ -588,13 +588,8 @@ static int check_chosen(struct node *root)
int ok = 1;
chosen = get_subnode(root, "chosen");
- if (! chosen) {
- ERRMSG("Missing /chosen node\n");
- return 0;
- }
-
- CHECK_HAVE_WARN_STRING(chosen, "bootargs");
- CHECK_HAVE_WARN_STRING(chosen, "linux,stdout-path");
+ if (!chosen)
+ return ok;
/* give warning for obsolete interrupt-controller property */
do {