aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/gemini/patches-3.18/021-reset-parameters.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-03-26 20:36:30 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-03-26 20:36:30 +0000
commitb83cc973cec0cf2010a43ff094c418d8573fe5be (patch)
treeef820bef132e9e1fe6d7c46ba3a46700f591ad80 /target/linux/gemini/patches-3.18/021-reset-parameters.patch
parent2a4b34d5cc74eb3b2f30919cb675cdf2c19b73d4 (diff)
downloadmaster-187ad058-b83cc973cec0cf2010a43ff094c418d8573fe5be.tar.gz
master-187ad058-b83cc973cec0cf2010a43ff094c418d8573fe5be.tar.bz2
master-187ad058-b83cc973cec0cf2010a43ff094c418d8573fe5be.zip
gemini: add 3.18 support
Signed-off-by: Roman Yeryomin <roman@advem.lv> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45033 3c298f89-4303-0410-b956-a3cf2f4a3e73
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 0000000000..b466badd67
--- /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 2014-08-23 07:06:06.014200638 -0500
++++ b/arch/arm/mach-gemini/common.h 2014-08-23 07:07:33.450536466 -0500
+@@ -26,6 +26,6 @@
+ 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__ */