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-mvebu | |
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-mvebu')
-rw-r--r-- | arch/arm/mach-mvebu/common.h | 4 | ||||
-rw-r--r-- | arch/arm/mach-mvebu/system-controller.c | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/arch/arm/mach-mvebu/common.h b/arch/arm/mach-mvebu/common.h index 98defd5e92cd..e366010e1d91 100644 --- a/arch/arm/mach-mvebu/common.h +++ b/arch/arm/mach-mvebu/common.h | |||
@@ -17,7 +17,9 @@ | |||
17 | 17 | ||
18 | #define ARMADA_XP_MAX_CPUS 4 | 18 | #define ARMADA_XP_MAX_CPUS 4 |
19 | 19 | ||
20 | void mvebu_restart(char mode, const char *cmd); | 20 | #include <linux/reboot.h> |
21 | |||
22 | void mvebu_restart(enum reboot_mode mode, const char *cmd); | ||
21 | 23 | ||
22 | void armada_370_xp_init_irq(void); | 24 | void armada_370_xp_init_irq(void); |
23 | void armada_370_xp_handle_irq(struct pt_regs *regs); | 25 | void armada_370_xp_handle_irq(struct pt_regs *regs); |
diff --git a/arch/arm/mach-mvebu/system-controller.c b/arch/arm/mach-mvebu/system-controller.c index b8079df8c986..f875124ff4f9 100644 --- a/arch/arm/mach-mvebu/system-controller.c +++ b/arch/arm/mach-mvebu/system-controller.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <linux/init.h> | 26 | #include <linux/init.h> |
27 | #include <linux/of_address.h> | 27 | #include <linux/of_address.h> |
28 | #include <linux/io.h> | 28 | #include <linux/io.h> |
29 | #include <linux/reboot.h> | ||
29 | 30 | ||
30 | static void __iomem *system_controller_base; | 31 | static void __iomem *system_controller_base; |
31 | 32 | ||
@@ -63,7 +64,7 @@ static struct of_device_id of_system_controller_table[] = { | |||
63 | { /* end of list */ }, | 64 | { /* end of list */ }, |
64 | }; | 65 | }; |
65 | 66 | ||
66 | void mvebu_restart(char mode, const char *cmd) | 67 | void mvebu_restart(enum reboot_mode mode, const char *cmd) |
67 | { | 68 | { |
68 | if (!system_controller_base) { | 69 | if (!system_controller_base) { |
69 | pr_err("Cannot restart, system-controller not available: check the device tree\n"); | 70 | pr_err("Cannot restart, system-controller not available: check the device tree\n"); |