diff options
-rw-r--r-- | arch/mips/kernel/traps.c | 3 | ||||
-rw-r--r-- | arch/mips/mti-malta/malta-int.c | 15 | ||||
-rw-r--r-- | arch/mips/mti-malta/malta-setup.c | 6 |
3 files changed, 3 insertions, 21 deletions
diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c index 0c0270c29cd1..1f5fdee1dfc3 100644 --- a/arch/mips/kernel/traps.c +++ b/arch/mips/kernel/traps.c | |||
@@ -49,6 +49,7 @@ | |||
49 | #include <asm/fpu.h> | 49 | #include <asm/fpu.h> |
50 | #include <asm/fpu_emulator.h> | 50 | #include <asm/fpu_emulator.h> |
51 | #include <asm/idle.h> | 51 | #include <asm/idle.h> |
52 | #include <asm/mips-cm.h> | ||
52 | #include <asm/mips-r2-to-r6-emul.h> | 53 | #include <asm/mips-r2-to-r6-emul.h> |
53 | #include <asm/mipsregs.h> | 54 | #include <asm/mipsregs.h> |
54 | #include <asm/mipsmtregs.h> | 55 | #include <asm/mipsmtregs.h> |
@@ -445,6 +446,8 @@ asmlinkage void do_be(struct pt_regs *regs) | |||
445 | 446 | ||
446 | if (board_be_handler) | 447 | if (board_be_handler) |
447 | action = board_be_handler(regs, fixup != NULL); | 448 | action = board_be_handler(regs, fixup != NULL); |
449 | else | ||
450 | mips_cm_error_report(); | ||
448 | 451 | ||
449 | switch (action) { | 452 | switch (action) { |
450 | case MIPS_BE_DISCARD: | 453 | case MIPS_BE_DISCARD: |
diff --git a/arch/mips/mti-malta/malta-int.c b/arch/mips/mti-malta/malta-int.c index 9f83224292d9..cb675ec6f283 100644 --- a/arch/mips/mti-malta/malta-int.c +++ b/arch/mips/mti-malta/malta-int.c | |||
@@ -290,18 +290,3 @@ void __init arch_init_irq(void) | |||
290 | 290 | ||
291 | setup_irq(corehi_irq, &corehi_irqaction); | 291 | setup_irq(corehi_irq, &corehi_irqaction); |
292 | } | 292 | } |
293 | |||
294 | void malta_be_init(void) | ||
295 | { | ||
296 | /* Could change CM error mask register. */ | ||
297 | } | ||
298 | |||
299 | int malta_be_handler(struct pt_regs *regs, int is_fixup) | ||
300 | { | ||
301 | /* This duplicates the handling in do_be which seems wrong */ | ||
302 | int retval = is_fixup ? MIPS_BE_FIXUP : MIPS_BE_FATAL; | ||
303 | |||
304 | mips_cm_error_report(); | ||
305 | |||
306 | return retval; | ||
307 | } | ||
diff --git a/arch/mips/mti-malta/malta-setup.c b/arch/mips/mti-malta/malta-setup.c index f1b6074828b1..a01d5debfcaf 100644 --- a/arch/mips/mti-malta/malta-setup.c +++ b/arch/mips/mti-malta/malta-setup.c | |||
@@ -42,9 +42,6 @@ | |||
42 | #define ROCIT_CONFIG_GEN0 0x1f403000 | 42 | #define ROCIT_CONFIG_GEN0 0x1f403000 |
43 | #define ROCIT_CONFIG_GEN0_PCI_IOCU BIT(7) | 43 | #define ROCIT_CONFIG_GEN0_PCI_IOCU BIT(7) |
44 | 44 | ||
45 | extern void malta_be_init(void); | ||
46 | extern int malta_be_handler(struct pt_regs *regs, int is_fixup); | ||
47 | |||
48 | static struct resource standard_io_resources[] = { | 45 | static struct resource standard_io_resources[] = { |
49 | { | 46 | { |
50 | .name = "dma1", | 47 | .name = "dma1", |
@@ -301,7 +298,4 @@ void __init plat_mem_setup(void) | |||
301 | #if defined(CONFIG_VT) && defined(CONFIG_VGA_CONSOLE) | 298 | #if defined(CONFIG_VT) && defined(CONFIG_VGA_CONSOLE) |
302 | screen_info_setup(); | 299 | screen_info_setup(); |
303 | #endif | 300 | #endif |
304 | |||
305 | board_be_init = malta_be_init; | ||
306 | board_be_handler = malta_be_handler; | ||
307 | } | 301 | } |