powerpc: Fix prom_init on 32-bit OF machines
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sun, 22 Mar 2009 16:04:53 +0000 (16:04 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 24 Mar 2009 02:43:35 +0000 (13:43 +1100)
Commit e7943fbbfdb6eef03c003b374de1f802cc14f02a broke ppc32 using
Open Firmware client interface due to using the wrong relocation
macro when accessing the variable "linux_banner".

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/prom_init.c

index 4d5ebb46b2c412d965d5c4830af353256930f804..2e026c0407d4c2b69bed464cc28d3621a1d77f53 100644 (file)
@@ -2283,7 +2283,7 @@ unsigned long __init prom_init(unsigned long r3, unsigned long r4,
         */
        prom_init_stdout();
 
-       prom_printf("Preparing to boot %s", PTRRELOC((char *)linux_banner));
+       prom_printf("Preparing to boot %s", RELOC(linux_banner));
 
        /*
         * Get default machine type. At this point, we do not differentiate