]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: use enum reboot_type on new platforms
authorArnd Bergmann <arnd@arndb.de>
Wed, 19 Jun 2013 10:54:48 +0000 (12:54 +0200)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 28 Jun 2013 06:39:16 +0000 (16:39 +1000)
The interface has changed with "reboot: arm: change reboot_mode to
use enum reboot_mode" that is getting merged through the -mm tree.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
arch/arm/mach-keystone/keystone.c
arch/arm/mach-zynq/common.c

index fe4d9ff93a7ef8560cd6948aaa99720242df5865..7c1bbe2e4ab00f7175a6c853f75ec3486a3073bc 100644 (file)
@@ -14,6 +14,7 @@
 #include <linux/init.h>
 #include <linux/of_platform.h>
 #include <linux/of_address.h>
+#include <linux/reboot.h>
 
 #include <asm/setup.h>
 #include <asm/mach/map.h>
@@ -49,7 +50,7 @@ static const char *keystone_match[] __initconst = {
        NULL,
 };
 
-void keystone_restart(char mode, const char *cmd)
+void keystone_restart(enum reboot_mode mode, const char *cmd)
 {
        u32 val;
 
index 4130e65a0e3f6fec890c45704ce83e47e6badc50..1eae12d1506b8ad40b4372befd84195302691f97 100644 (file)
@@ -25,6 +25,7 @@
 #include <linux/of_irq.h>
 #include <linux/of_platform.h>
 #include <linux/of.h>
+#include <linux/reboot.h>
 
 #include <asm/mach/arch.h>
 #include <asm/mach/map.h>
@@ -91,7 +92,7 @@ static void __init zynq_map_io(void)
        zynq_scu_map_io();
 }
 
-static void zynq_system_reset(char mode, const char *cmd)
+static void zynq_system_reset(enum reboot_mode mode, const char *cmd)
 {
        zynq_slcr_system_reset();
 }