From: David Gibson Date: Mon, 14 May 2007 03:13:57 +0000 (+1000) Subject: [POWERPC] Fix bug adding properties with flatdevtree.c's ft_set_prop() X-Git-Tag: v2.6.22-rc2~7^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c40542ffaa20e361f5f37d112aba41a725fc759;p=pandora-kernel.git [POWERPC] Fix bug adding properties with flatdevtree.c's ft_set_prop() ft_set_prop() from flatdevtree.c in the zImage wrapper will either replace an existing property in the flat device tree, or add a new property definiion if the given property isn't present. However, when adding properties, it adds the property definition immediately before the node's END_NODE tag, potentially after any subnode definitions for the node. This confuses the kernel flat tree parser in prom.c which assumes that all property definitions for a node come before all subnode definitions. This patch corrects ft_set_prop() so that it adds new properties before the first subnode, instead of before the END_NODE tag. Signed-off-by: David Gibson Acked-by: Scott Wood Acked-by: Mark A. Greer Signed-off-by: Paul Mackerras --- Reading git-diff-tree failed