diff options
author | Aaro Koskinen <aaro.koskinen@iki.fi> | 2013-02-11 15:51:49 -0500 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2013-02-19 03:36:37 -0500 |
commit | f7be4e754b61681467f873400cbaa42a013b8973 (patch) | |
tree | a69c286445484802127aaf6552755e53867229c3 /arch/mips/sgi-ip27 | |
parent | 1e7decdb27ae89b2a0626635a8cf527f930bff1c (diff) |
MIPS: early_printk: drop __init annotations
We cannot use __init for earlyprintk code or data, since the kernel
parameter "keep_bootcon" allows leaving the boot console enabled.
Currently MIPS will crash/hang/die if you use keep_bootcon. The patch
fixes it at least on Lemote FuLoong mini-PC. Changes for other boards
were done based on what I could find with grep...
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Patchwork: http://patchwork.linux-mips.org/patch/4935/
Signed-off-by: John Crispin <blogic@openwrt.org>
Diffstat (limited to 'arch/mips/sgi-ip27')
-rw-r--r-- | arch/mips/sgi-ip27/ip27-console.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/sgi-ip27/ip27-console.c b/arch/mips/sgi-ip27/ip27-console.c index 984e561f0f7a..b952d5b1af86 100644 --- a/arch/mips/sgi-ip27/ip27-console.c +++ b/arch/mips/sgi-ip27/ip27-console.c | |||
@@ -31,7 +31,7 @@ static inline struct ioc3_uartregs *console_uart(void) | |||
31 | return &ioc3->sregs.uarta; | 31 | return &ioc3->sregs.uarta; |
32 | } | 32 | } |
33 | 33 | ||
34 | void __init prom_putchar(char c) | 34 | void prom_putchar(char c) |
35 | { | 35 | { |
36 | struct ioc3_uartregs *uart = console_uart(); | 36 | struct ioc3_uartregs *uart = console_uart(); |
37 | 37 | ||