DORMANTno replies

[DTC PATCH] remove check for interrupt-controller property under /chosen

From: Stuart Yoder <hidden>
Date: 2007-02-19 17:29:01
Subsystem: the rest · Maintainer: Linus Torvalds

Remove warning for missing interrupt-controller property
under /chosen.  There is consensus that this
property does not belong here.

Also, add a warning if interrupt-controller _is_ found
under /chosen.

Signed-off-by: Stuart Yoder <redacted>
---
 livetree.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/livetree.c b/livetree.c
index ede29fb..1a2764d 100644
--- a/livetree.c
+++ b/livetree.c
@@ -594,7 +594,14 @@ static int check_chosen(struct node *roo
 
 	CHECK_HAVE_WARN_STRING(chosen, "bootargs");
 	CHECK_HAVE_WARN_STRING(chosen, "linux,stdout-path");
-	CHECK_HAVE_WARN_PHANDLE(chosen, "interrupt-controller", root);
+
+        /* give warning for obsolete interrupt-controller property */
+	do {
+		if ((prop = get_property(chosen, "interrupt-controller")) != NULL) {
+			WARNMSG("%s has obsolete \"%s\" property\n",
+                                 chosen->fullpath, "interrupt-controller"); 
+                }
+	} while (0);
 
 	return ok;	
 }
-- 
1.4.4
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help