[PATCH] ppc64: remove bogus f50 hack in prom.c

Benjamin Herrenschmidt benh at kernel.crashing.org
Wed Apr 6 16:13:54 EST 2005


Hi !

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.

Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>

Index: linux-work/arch/ppc64/kernel/prom.c
===================================================================
--- linux-work.orig/arch/ppc64/kernel/prom.c	2005-04-06 15:26:23.000000000 +1000
+++ linux-work/arch/ppc64/kernel/prom.c	2005-04-06 16:10:39.000000000 +1000
@@ -544,12 +544,6 @@
 	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)






More information about the Linuxppc64-dev mailing list