Skip to contentSkip to conversation

ppc64: remove bogus f50 hack in prom.c

PATCH In review [email protected] 1 participant 1 message Apr 12, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 52/198 ppc64: remove bogus f50 hack in prom.c

From: Benjamin Herrenschmidt <[email protected]>

The code that parses the OF device tree contains an old bogus hack which was killed a long time ago on ppc32, but survived in ppc64. It was supposed to help with a problem on the f50 which is ... a 32 bits machine :) Additionally, that hack is causing problems, so let's just get rid of it.

---

 25-akpm/arch/ppc64/kernel/prom.c |    6 ------
 1 files changed, 6 deletions(-)
arch/ppc64/kernel/prom.c renamed from arch/ppc64/kernel/prom.c~ppc64-remove-bogus-f50-hack-in-promc +0 -6
diff -puN arch/ppc64/kernel/prom.c~ppc64-remove-bogus-f50-hack-in-promc arch/ppc64/kernel/prom.c
@@ -544,12 +544,6 @@ static int __devinit finish_node(struct 
 	if (ip != NULL)
 		nsizec = *ip;
 
-	/* the f50 sets the name to 'display' and 'compatible' to what we
-	 * expect for the name -- Cort
-	 */
-	if (!strcmp(np->name, "display"))
-		np->name = get_property(np, "compatible", NULL);
-
 	if (!strcmp(np->name, "device-tree") || np->parent == NULL)
 		ifunc = interpret_root_props;
 	else if (np->type == 0)

_