Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mips: ip22: Reword PANICED to PANICKED and remove useless header

Many other place in the kernel prefer the latter, so let's keep
it consistent in MIPS code as well. Also, removes a useless header.

Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Guilherme G. Piccoli <gpiccoli@igalia.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>

authored by

Guilherme G. Piccoli and committed by
Thomas Bogendoerfer
d0ab32b0 f44b3e74

+5 -6
+5 -6
arch/mips/sgi-ip22/ip22-reset.c
··· 11 11 #include <linux/interrupt.h> 12 12 #include <linux/kernel.h> 13 13 #include <linux/sched/signal.h> 14 - #include <linux/notifier.h> 15 14 #include <linux/panic_notifier.h> 16 15 #include <linux/pm.h> 17 16 #include <linux/timer.h> ··· 40 41 static struct timer_list power_timer, blink_timer, debounce_timer; 41 42 static unsigned long blink_timer_timeout; 42 43 43 - #define MACHINE_PANICED 1 44 + #define MACHINE_PANICKED 1 44 45 #define MACHINE_SHUTTING_DOWN 2 45 46 46 47 static int machine_state; ··· 111 112 return; 112 113 } 113 114 114 - if (machine_state & MACHINE_PANICED) 115 + if (machine_state & MACHINE_PANICKED) 115 116 sgimc->cpuctrl0 |= SGIMC_CCTRL0_SYSINIT; 116 117 117 118 enable_irq(SGI_PANEL_IRQ); ··· 119 120 120 121 static inline void power_button(void) 121 122 { 122 - if (machine_state & MACHINE_PANICED) 123 + if (machine_state & MACHINE_PANICKED) 123 124 return; 124 125 125 126 if ((machine_state & MACHINE_SHUTTING_DOWN) || ··· 166 167 static int panic_event(struct notifier_block *this, unsigned long event, 167 168 void *ptr) 168 169 { 169 - if (machine_state & MACHINE_PANICED) 170 + if (machine_state & MACHINE_PANICKED) 170 171 return NOTIFY_DONE; 171 - machine_state |= MACHINE_PANICED; 172 + machine_state |= MACHINE_PANICKED; 172 173 173 174 blink_timer_timeout = PANIC_FREQ; 174 175 blink_timeout(&blink_timer);