linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Remove bogus errors from check_chosen.
@ 2007-03-22 16:11 Scott Wood
  2007-03-22 16:22 ` Scott Wood
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Scott Wood @ 2007-03-22 16:11 UTC (permalink / raw)
  To: jdl; +Cc: linuxppc-dev

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>
---
 livetree.c |    9 ++-------
 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 {
-- 
1.5.0.3

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2007-03-26 13:35 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-22 16:11 [PATCH] Remove bogus errors from check_chosen Scott Wood
2007-03-22 16:22 ` Scott Wood
2007-03-23  3:31 ` David Gibson
2007-03-23 15:05   ` Scott Wood
2007-03-23 15:21     ` Jerry Van Baren
2007-03-23 15:36       ` Scott Wood
2007-03-23 15:48         ` Jerry Van Baren
2007-03-23 23:42           ` David Gibson
2007-03-23 23:40         ` David Gibson
2007-03-23 16:03     ` Jon Loeliger
2007-03-23 23:51       ` David Gibson
2007-03-26 13:35 ` Jon Loeliger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).