Skip to contentSkip to conversation

Remove check for linux,platform property in /chosen

dtc David Gibson 2 participants 2 messages Jan 29, 2007

lore
Share & tools
lore
#0 lore raw

Jon, please apply:

The linux,platform property in /chosen was obsolete almost as soon as it was invented. Remove the check for it from dtc, which just tends to lead to irritating spurious failures.

livetree.c +0 -2
Index: dtc/livetree.c
===================================================================
@@ -568,8 +568,6 @@ static int check_chosen(struct node *roo
 		return 0;
 	}
 
-	CHECK_HAVE_ONECELL(chosen, "linux,platform");
-
 	CHECK_HAVE_WARN_STRING(chosen, "bootargs");
 	CHECK_HAVE_WARN_STRING(chosen, "linux,stdout-path");
 	CHECK_HAVE_WARN_PHANDLE(chosen, "interrupt-controller", root);
Signature · 4 lines
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson
#1 lore raw

So, like, the other day David Gibson mumbled:

Quoted 7 lines

Jon, please apply:

The linux,platform property in /chosen was obsolete almost as soon as it was invented. Remove the check for it from dtc, which just tends to lead to irritating spurious failures.

Done.

Thanks,
jdl