Author: hailfinger
Date: 2008-09-06 22:30:26 +0200 (Sat, 06 Sep 2008)
New Revision: 859
Modified:
coreboot-v3/util/dtc/flattree.c
Log:
The .next pointer was written twice for every struct device in
statictree.c. This bug was introduced in r175.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006(a)gmx.net>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006(a)gmx.net>
Modified: coreboot-v3/util/dtc/flattree.c
===================================================================
--- coreboot-v3/util/dtc/flattree.c 2008-09-05 10:29:33 UTC (rev 858)
+++ coreboot-v3/util/dtc/flattree.c 2008-09-06 20:30:26 UTC (rev 859)
@@ -661,8 +661,6 @@
}
if (tree->next_sibling)
fprintf(f, "\t.sibling = &dev_%s,\n", tree->next_sibling->label);
- if (tree->next)
- fprintf(f, "\t.next = &dev_%s,\n", tree->next->label);
/* now do we do next? */
/* this will need to do a bus for every child. And, below, we're going to need to find which bus we're on*/
/* for now, let's keep it to the minimum that will work, while we see if we like this. */