diff options
| -rw-r--r-- | arch/mips/powertv/powertv_setup.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/arch/mips/powertv/powertv_setup.c b/arch/mips/powertv/powertv_setup.c index bd8ebf128f29..698b1eafbe98 100644 --- a/arch/mips/powertv/powertv_setup.c +++ b/arch/mips/powertv/powertv_setup.c | |||
| @@ -64,9 +64,6 @@ | |||
| 64 | #define REG_SIZE "4" /* In bytes */ | 64 | #define REG_SIZE "4" /* In bytes */ |
| 65 | #endif | 65 | #endif |
| 66 | 66 | ||
| 67 | static struct pt_regs die_regs; | ||
| 68 | static bool have_die_regs; | ||
| 69 | |||
| 70 | static void register_panic_notifier(void); | 67 | static void register_panic_notifier(void); |
| 71 | static int panic_handler(struct notifier_block *notifier_block, | 68 | static int panic_handler(struct notifier_block *notifier_block, |
| 72 | unsigned long event, void *cause_string); | 69 | unsigned long event, void *cause_string); |
| @@ -218,24 +215,6 @@ static int panic_handler(struct notifier_block *notifier_block, | |||
| 218 | return NOTIFY_DONE; | 215 | return NOTIFY_DONE; |
| 219 | } | 216 | } |
| 220 | 217 | ||
| 221 | /** | ||
| 222 | * Platform-specific handling of oops | ||
| 223 | * @str: Pointer to the oops string | ||
| 224 | * @regs: Pointer to the oops registers | ||
| 225 | * All we do here is to save the registers for subsequent printing through | ||
| 226 | * the panic notifier. | ||
| 227 | */ | ||
| 228 | void platform_die(const char *str, const struct pt_regs *regs) | ||
| 229 | { | ||
| 230 | /* If we already have saved registers, don't overwrite them as they | ||
| 231 | * they apply to the initial fault */ | ||
| 232 | |||
| 233 | if (!have_die_regs) { | ||
| 234 | have_die_regs = true; | ||
| 235 | die_regs = *regs; | ||
| 236 | } | ||
| 237 | } | ||
| 238 | |||
| 239 | /* Information about the RF MAC address, if one was supplied on the | 218 | /* Information about the RF MAC address, if one was supplied on the |
| 240 | * command line. */ | 219 | * command line. */ |
| 241 | static bool have_rfmac; | 220 | static bool have_rfmac; |
