Browse Source

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>
main
Scott Wood 18 years ago committed by Jon Loeliger
parent
commit
b29597d9a3
  1. 9
      livetree.c

9
livetree.c

@ -588,13 +588,8 @@ static int check_chosen(struct node *root) @@ -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 {

Loading…
Cancel
Save