mirror of
https://github.com/dgibson/dtc.git
synced 2025-10-14 00:37:41 -04:00
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>
This commit is contained in:
parent
001430072f
commit
b29597d9a3
1 changed files with 2 additions and 7 deletions
|
@ -588,13 +588,8 @@ static int check_chosen(struct node *root)
|
||||||
int ok = 1;
|
int ok = 1;
|
||||||
|
|
||||||
chosen = get_subnode(root, "chosen");
|
chosen = get_subnode(root, "chosen");
|
||||||
if (! chosen) {
|
if (!chosen)
|
||||||
ERRMSG("Missing /chosen node\n");
|
return ok;
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
CHECK_HAVE_WARN_STRING(chosen, "bootargs");
|
|
||||||
CHECK_HAVE_WARN_STRING(chosen, "linux,stdout-path");
|
|
||||||
|
|
||||||
/* give warning for obsolete interrupt-controller property */
|
/* give warning for obsolete interrupt-controller property */
|
||||||
do {
|
do {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue