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-at91 | |
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-at91')
-rw-r--r-- | arch/arm/mach-at91/at91rm9200.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-at91/generic.h | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/arch/arm/mach-at91/at91rm9200.c b/arch/arm/mach-at91/at91rm9200.c index 9eb574397ee1..4aad93d54d6f 100644 --- a/arch/arm/mach-at91/at91rm9200.c +++ b/arch/arm/mach-at91/at91rm9200.c | |||
@@ -11,6 +11,7 @@ | |||
11 | */ | 11 | */ |
12 | 12 | ||
13 | #include <linux/module.h> | 13 | #include <linux/module.h> |
14 | #include <linux/reboot.h> | ||
14 | 15 | ||
15 | #include <asm/irq.h> | 16 | #include <asm/irq.h> |
16 | #include <asm/mach/arch.h> | 17 | #include <asm/mach/arch.h> |
@@ -304,7 +305,7 @@ static void at91rm9200_idle(void) | |||
304 | at91_pmc_write(AT91_PMC_SCDR, AT91_PMC_PCK); | 305 | at91_pmc_write(AT91_PMC_SCDR, AT91_PMC_PCK); |
305 | } | 306 | } |
306 | 307 | ||
307 | static void at91rm9200_restart(char mode, const char *cmd) | 308 | static void at91rm9200_restart(enum reboot_mode reboot_mode, const char *cmd) |
308 | { | 309 | { |
309 | /* | 310 | /* |
310 | * Perform a hardware reset with the use of the Watchdog timer. | 311 | * Perform a hardware reset with the use of the Watchdog timer. |
diff --git a/arch/arm/mach-at91/generic.h b/arch/arm/mach-at91/generic.h index f6de36aefe85..dc6e2f5f804d 100644 --- a/arch/arm/mach-at91/generic.h +++ b/arch/arm/mach-at91/generic.h | |||
@@ -10,6 +10,7 @@ | |||
10 | 10 | ||
11 | #include <linux/clkdev.h> | 11 | #include <linux/clkdev.h> |
12 | #include <linux/of.h> | 12 | #include <linux/of.h> |
13 | #include <linux/reboot.h> | ||
13 | 14 | ||
14 | /* Map io */ | 15 | /* Map io */ |
15 | extern void __init at91_map_io(void); | 16 | extern void __init at91_map_io(void); |
@@ -60,8 +61,8 @@ extern void at91sam9_idle(void); | |||
60 | 61 | ||
61 | /* reset */ | 62 | /* reset */ |
62 | extern void at91_ioremap_rstc(u32 base_addr); | 63 | extern void at91_ioremap_rstc(u32 base_addr); |
63 | extern void at91sam9_alt_restart(char, const char *); | 64 | extern void at91sam9_alt_restart(enum reboot_mode, const char *); |
64 | extern void at91sam9g45_restart(char, const char *); | 65 | extern void at91sam9g45_restart(enum reboot_mode, const char *); |
65 | 66 | ||
66 | /* shutdown */ | 67 | /* shutdown */ |
67 | extern void at91_ioremap_shdwc(u32 base_addr); | 68 | extern void at91_ioremap_shdwc(u32 base_addr); |