diff options
Diffstat (limited to 'arch/arm/mach-spear/restart.c')
-rw-r--r-- | arch/arm/mach-spear/restart.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/mach-spear/restart.c b/arch/arm/mach-spear/restart.c index 2b44500bb718..ce5e098c4888 100644 --- a/arch/arm/mach-spear/restart.c +++ b/arch/arm/mach-spear/restart.c | |||
@@ -12,14 +12,15 @@ | |||
12 | */ | 12 | */ |
13 | #include <linux/io.h> | 13 | #include <linux/io.h> |
14 | #include <linux/amba/sp810.h> | 14 | #include <linux/amba/sp810.h> |
15 | #include <linux/reboot.h> | ||
15 | #include <asm/system_misc.h> | 16 | #include <asm/system_misc.h> |
16 | #include <mach/spear.h> | 17 | #include <mach/spear.h> |
17 | #include "generic.h" | 18 | #include "generic.h" |
18 | 19 | ||
19 | #define SPEAR13XX_SYS_SW_RES (VA_MISC_BASE + 0x204) | 20 | #define SPEAR13XX_SYS_SW_RES (VA_MISC_BASE + 0x204) |
20 | void spear_restart(char mode, const char *cmd) | 21 | void spear_restart(enum reboot_mode mode, const char *cmd) |
21 | { | 22 | { |
22 | if (mode == 's') { | 23 | if (mode == REBOOT_SOFT) { |
23 | /* software reset, Jump into ROM at address 0 */ | 24 | /* software reset, Jump into ROM at address 0 */ |
24 | soft_restart(0); | 25 | soft_restart(0); |
25 | } else { | 26 | } else { |