[DTC PATCH] remove check for interrupt-controller property under /chosen
Stuart Yoder
b08248 at freescale.com
Tue Feb 20 04:28:27 EST 2007
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>
---
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
More information about the Linuxppc-dev
mailing list