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/txx9 | |
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/txx9')
-rw-r--r-- | arch/mips/txx9/generic/setup.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/mips/txx9/generic/setup.c b/arch/mips/txx9/generic/setup.c index 560fe8991753..5524f2c7b05c 100644 --- a/arch/mips/txx9/generic/setup.c +++ b/arch/mips/txx9/generic/setup.c | |||
@@ -513,19 +513,19 @@ void __init txx9_sio_init(unsigned long baseaddr, int irq, | |||
513 | } | 513 | } |
514 | 514 | ||
515 | #ifdef CONFIG_EARLY_PRINTK | 515 | #ifdef CONFIG_EARLY_PRINTK |
516 | static void __init null_prom_putchar(char c) | 516 | static void null_prom_putchar(char c) |
517 | { | 517 | { |
518 | } | 518 | } |
519 | void (*txx9_prom_putchar)(char c) __initdata = null_prom_putchar; | 519 | void (*txx9_prom_putchar)(char c) = null_prom_putchar; |
520 | 520 | ||
521 | void __init prom_putchar(char c) | 521 | void prom_putchar(char c) |
522 | { | 522 | { |
523 | txx9_prom_putchar(c); | 523 | txx9_prom_putchar(c); |
524 | } | 524 | } |
525 | 525 | ||
526 | static void __iomem *early_txx9_sio_port; | 526 | static void __iomem *early_txx9_sio_port; |
527 | 527 | ||
528 | static void __init early_txx9_sio_putchar(char c) | 528 | static void early_txx9_sio_putchar(char c) |
529 | { | 529 | { |
530 | #define TXX9_SICISR 0x0c | 530 | #define TXX9_SICISR 0x0c |
531 | #define TXX9_SITFIFO 0x1c | 531 | #define TXX9_SITFIFO 0x1c |