Skip to contentSkip to conversation

powerpc: Fix early btext debug on PowerMac

PATCH New Benjamin Herrenschmidt 1 participant 1 message Nov 13, 2007 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc: Fix early btext debug on PowerMac

The early btext debug wouldn't work on PowerMac when booted from BootX due to the code looking for the wrong property name.

---

 arch/powerpc/kernel/btext.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
arch/powerpc/kernel/btext.c +3 -1
Index: linux-work/arch/powerpc/kernel/btext.c
===================================================================
@@ -186,7 +186,9 @@ int btext_initialize(struct device_node 
 		pitch = *prop;
 	if (pitch == 1)
 		pitch = 0x1000;
-	prop = of_get_property(np, "address", NULL);
+	prop = of_get_property(np, "linux,bootx-addr", NULL);
+	if (prop == NULL)
+		prop = of_get_property(np, "address", NULL);
 	if (prop)
 		address = *prop;