From: Benjamin Herrenschmidt Date: Sun, 22 Mar 2009 16:04:53 +0000 (+0000) Subject: powerpc: Fix prom_init on 32-bit OF machines X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=151a9f4aef53fb9cc1e192c7d321c1d820232f4a;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git powerpc: Fix prom_init on 32-bit OF machines 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 --- diff --git a/arch/powerpc/kernel/prom_init.c b/arch/powerpc/kernel/prom_init.c index 4d5ebb46b2c..2e026c0407d 100644 --- a/arch/powerpc/kernel/prom_init.c +++ b/arch/powerpc/kernel/prom_init.c @@ -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