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-footbridge | |
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-footbridge')
-rw-r--r-- | arch/arm/mach-footbridge/common.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-footbridge/common.h | 3 | ||||
-rw-r--r-- | arch/arm/mach-footbridge/netwinder-hw.c | 4 |
3 files changed, 6 insertions, 5 deletions
diff --git a/arch/arm/mach-footbridge/common.c b/arch/arm/mach-footbridge/common.c index a42b369bc439..2739ca2c1334 100644 --- a/arch/arm/mach-footbridge/common.c +++ b/arch/arm/mach-footbridge/common.c | |||
@@ -198,9 +198,9 @@ void __init footbridge_map_io(void) | |||
198 | } | 198 | } |
199 | } | 199 | } |
200 | 200 | ||
201 | void footbridge_restart(char mode, const char *cmd) | 201 | void footbridge_restart(enum reboot_mode mode, const char *cmd) |
202 | { | 202 | { |
203 | if (mode == 's') { | 203 | if (mode == REBOOT_SOFT) { |
204 | /* Jump into the ROM */ | 204 | /* Jump into the ROM */ |
205 | soft_restart(0x41000000); | 205 | soft_restart(0x41000000); |
206 | } else { | 206 | } else { |
diff --git a/arch/arm/mach-footbridge/common.h b/arch/arm/mach-footbridge/common.h index a846e50a07b8..56607b3a773e 100644 --- a/arch/arm/mach-footbridge/common.h +++ b/arch/arm/mach-footbridge/common.h | |||
@@ -1,3 +1,4 @@ | |||
1 | #include <linux/reboot.h> | ||
1 | 2 | ||
2 | extern void footbridge_timer_init(void); | 3 | extern void footbridge_timer_init(void); |
3 | extern void isa_timer_init(void); | 4 | extern void isa_timer_init(void); |
@@ -8,4 +9,4 @@ extern void footbridge_map_io(void); | |||
8 | extern void footbridge_init_irq(void); | 9 | extern void footbridge_init_irq(void); |
9 | 10 | ||
10 | extern void isa_init_irq(unsigned int irq); | 11 | extern void isa_init_irq(unsigned int irq); |
11 | extern void footbridge_restart(char, const char *); | 12 | extern void footbridge_restart(enum reboot_mode, const char *); |
diff --git a/arch/arm/mach-footbridge/netwinder-hw.c b/arch/arm/mach-footbridge/netwinder-hw.c index 90ea23fdce4c..1fd2cf097e30 100644 --- a/arch/arm/mach-footbridge/netwinder-hw.c +++ b/arch/arm/mach-footbridge/netwinder-hw.c | |||
@@ -634,9 +634,9 @@ fixup_netwinder(struct tag *tags, char **cmdline, struct meminfo *mi) | |||
634 | #endif | 634 | #endif |
635 | } | 635 | } |
636 | 636 | ||
637 | static void netwinder_restart(char mode, const char *cmd) | 637 | static void netwinder_restart(enum reboot_mode mode, const char *cmd) |
638 | { | 638 | { |
639 | if (mode == 's') { | 639 | if (mode == REBOOT_SOFT) { |
640 | /* Jump into the ROM */ | 640 | /* Jump into the ROM */ |
641 | soft_restart(0x41000000); | 641 | soft_restart(0x41000000); |
642 | } else { | 642 | } else { |