Skip to content

Commit

Permalink
powerpc: Fix prom_init on 32-bit OF machines
Browse files Browse the repository at this point in the history
Commit e7943fb 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>
  • Loading branch information
Benjamin Herrenschmidt committed Mar 24, 2009
1 parent 9e41d95 commit 151a9f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/kernel/prom_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 151a9f4

Please sign in to comment.