diff options
author | Robin Holt <holt@sgi.com> | 2013-07-08 19:01:40 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-09 13:33:29 -0400 |
commit | 7b6d864b48d95e6ea1df7df64475b9cb9616dcf9 (patch) | |
tree | bc5b3c1c6021e19e51f7f5afe5fb0fbbaef9f7a3 /arch/arm/mach-s5p64x0 | |
parent | 16d6d5b00ee75307bab7e4ede9452c97b28f30e2 (diff) |
reboot: arm: change reboot_mode to use enum reboot_mode
Preparing to move the parsing of reboot= to generic kernel code forces
the change in reboot_mode handling to use the enum.
[akpm@linux-foundation.org: fix arch/arm/mach-socfpga/socfpga.c]
Signed-off-by: Robin Holt <holt@sgi.com>
Cc: Russell King <rmk+kernel@arm.linux.org.uk>
Cc: Russ Anderson <rja@sgi.com>
Cc: Robin Holt <holt@sgi.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Guan Xuetao <gxt@mprc.pku.edu.cn>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/arm/mach-s5p64x0')
-rw-r--r-- | arch/arm/mach-s5p64x0/common.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-s5p64x0/common.h | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/arch/arm/mach-s5p64x0/common.c b/arch/arm/mach-s5p64x0/common.c index 76d0053bf564..dfdfdc320ce7 100644 --- a/arch/arm/mach-s5p64x0/common.c +++ b/arch/arm/mach-s5p64x0/common.c | |||
@@ -24,6 +24,7 @@ | |||
24 | #include <linux/dma-mapping.h> | 24 | #include <linux/dma-mapping.h> |
25 | #include <linux/gpio.h> | 25 | #include <linux/gpio.h> |
26 | #include <linux/irq.h> | 26 | #include <linux/irq.h> |
27 | #include <linux/reboot.h> | ||
27 | 28 | ||
28 | #include <asm/irq.h> | 29 | #include <asm/irq.h> |
29 | #include <asm/proc-fns.h> | 30 | #include <asm/proc-fns.h> |
@@ -439,9 +440,9 @@ static int __init s5p64x0_init_irq_eint(void) | |||
439 | } | 440 | } |
440 | arch_initcall(s5p64x0_init_irq_eint); | 441 | arch_initcall(s5p64x0_init_irq_eint); |
441 | 442 | ||
442 | void s5p64x0_restart(char mode, const char *cmd) | 443 | void s5p64x0_restart(enum reboot_mode mode, const char *cmd) |
443 | { | 444 | { |
444 | if (mode != 's') | 445 | if (mode != REBOOT_SOFT) |
445 | samsung_wdt_reset(); | 446 | samsung_wdt_reset(); |
446 | 447 | ||
447 | soft_restart(0); | 448 | soft_restart(0); |
diff --git a/arch/arm/mach-s5p64x0/common.h b/arch/arm/mach-s5p64x0/common.h index f8a60fdc5884..f3a9b43cba4a 100644 --- a/arch/arm/mach-s5p64x0/common.h +++ b/arch/arm/mach-s5p64x0/common.h | |||
@@ -12,6 +12,8 @@ | |||
12 | #ifndef __ARCH_ARM_MACH_S5P64X0_COMMON_H | 12 | #ifndef __ARCH_ARM_MACH_S5P64X0_COMMON_H |
13 | #define __ARCH_ARM_MACH_S5P64X0_COMMON_H | 13 | #define __ARCH_ARM_MACH_S5P64X0_COMMON_H |
14 | 14 | ||
15 | #include <linux/reboot.h> | ||
16 | |||
15 | void s5p6440_init_irq(void); | 17 | void s5p6440_init_irq(void); |
16 | void s5p6450_init_irq(void); | 18 | void s5p6450_init_irq(void); |
17 | void s5p64x0_init_io(struct map_desc *mach_desc, int size); | 19 | void s5p64x0_init_io(struct map_desc *mach_desc, int size); |
@@ -22,7 +24,7 @@ void s5p6440_setup_clocks(void); | |||
22 | void s5p6450_register_clocks(void); | 24 | void s5p6450_register_clocks(void); |
23 | void s5p6450_setup_clocks(void); | 25 | void s5p6450_setup_clocks(void); |
24 | 26 | ||
25 | void s5p64x0_restart(char mode, const char *cmd); | 27 | void s5p64x0_restart(enum reboot_mode mode, const char *cmd); |
26 | 28 | ||
27 | #ifdef CONFIG_CPU_S5P6440 | 29 | #ifdef CONFIG_CPU_S5P6440 |
28 | 30 | ||