aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/gemini/patches-3.18/021-reset-parameters.patch
diff options
context:
space:
mode:
authorJames <>2015-09-26 12:29:31 +0100
committerJames <>2015-09-26 12:29:31 +0100
commit626d9efa74685720020e816f3a917b7591d3cf7a (patch)
treed22eef73ae82287b30a1140decb4fc806d39d621 /target/linux/gemini/patches-3.18/021-reset-parameters.patch
downloadtrunk-47048-626d9efa74685720020e816f3a917b7591d3cf7a.tar.gz
trunk-47048-626d9efa74685720020e816f3a917b7591d3cf7a.tar.bz2
trunk-47048-626d9efa74685720020e816f3a917b7591d3cf7a.zip
trunk-47048
Diffstat (limited to 'target/linux/gemini/patches-3.18/021-reset-parameters.patch')
-rw-r--r--target/linux/gemini/patches-3.18/021-reset-parameters.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/target/linux/gemini/patches-3.18/021-reset-parameters.patch b/target/linux/gemini/patches-3.18/021-reset-parameters.patch
new file mode 100644
index 0000000..644e513
--- /dev/null
+++ b/target/linux/gemini/patches-3.18/021-reset-parameters.patch
@@ -0,0 +1,25 @@
+--- a/arch/arm/mach-gemini/reset.c
++++ b/arch/arm/mach-gemini/reset.c
+@@ -11,10 +11,11 @@
+ #define __MACH_SYSTEM_H
+
+ #include <linux/io.h>
++#include <linux/reboot.h>
+ #include <mach/hardware.h>
+ #include <mach/global_reg.h>
+
+-void gemini_restart(char mode, const char *cmd)
++void gemini_restart(enum reboot_mode mode, const char *cmd)
+ {
+ __raw_writel(RESET_GLOBAL | RESET_CPU1,
+ IO_ADDRESS(GEMINI_GLOBAL_BASE) + GLOBAL_RESET);
+--- a/arch/arm/mach-gemini/common.h
++++ b/arch/arm/mach-gemini/common.h
+@@ -26,6 +26,6 @@ extern int platform_register_pflash(unsi
+ struct mtd_partition *parts,
+ unsigned int nr_parts);
+
+-extern void gemini_restart(char mode, const char *cmd);
++extern void gemini_restart(enum reboot_mode mode, const char *cmd);
+
+ #endif /* __GEMINI_COMMON_H__ */