[Crosstoolchain-logs] [device-tree-compiler] 80/357: remove check for interrupt-controller property under /chosen

Hector Oron zumbi at moszumanska.debian.org
Thu Dec 8 17:05:52 UTC 2016


This is an automated email from the git hooks/post-receive script.

zumbi pushed a commit to branch upstream/1.3.x
in repository device-tree-compiler.

commit 5ae78ad8f8b3e39788dfb4090b03e147e71b0211
Author: Stuart Yoder <b08248 at freescale.com>
Date:   Mon Feb 19 11:28:27 2007 -0600

    remove check for interrupt-controller property under /chosen
    
    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 <stuart.yoder at freescale.com>
    Signed-off-by: Jon Loeliger <jdl at freescale.com>
---
 livetree.c | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/livetree.c b/livetree.c
index ede29fb..84f2f64 100644
--- a/livetree.c
+++ b/livetree.c
@@ -594,9 +594,16 @@ static int check_chosen(struct node *root)
 
 	CHECK_HAVE_WARN_STRING(chosen, "bootargs");
 	CHECK_HAVE_WARN_STRING(chosen, "linux,stdout-path");
-	CHECK_HAVE_WARN_PHANDLE(chosen, "interrupt-controller", root);
 
-	return ok;	
+        /* 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;
 }
 
 static int check_addr_size_reg(struct node *node,

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/crosstoolchain/device-tree-compiler.git



More information about the Crosstoolchain-logs mailing list