summaryrefslogtreecommitdiff
path: root/arch/arm/mach-gemini/reset.c
diff options
context:
space:
mode:
authorHans Ulli Kroll <ulli.kroll@googlemail.com>2015-05-11 18:13:11 +0200
committerArnd Bergmann <arnd@arndb.de>2015-05-12 16:45:23 +0200
commit31fc835fc787aad38e8985d593f8ad0d18825323 (patch)
treef0ce731900ca761aa00f0b62c100d297a187b7f9 /arch/arm/mach-gemini/reset.c
parent4c4945392dd20b1cbd98f1361eff3fc61905c7fc (diff)
ARM: gemini: fix compiler warning due wrong data type
This patch fixes a compiler warning in gemini_restart() issued by commit 7b6d864b48d9 ("reboot:arm: reboot_mode changes from char to enum reboot_mode"). arch/arm/mach-gemini/board-rut1xx.c:93:2: warning: initialization from incompatible pointer type The warning is harmless, and the patch does not need to be backported to stable kernels. Fixes: 7b6d864b48d ("reboot:arm: reboot_mode changes from char to enum reboot_mode.") Signed-off-by: Hans Ulli Kroll <ulli.kroll@googlemail.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/mach-gemini/reset.c')
-rw-r--r--arch/arm/mach-gemini/reset.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mach-gemini/reset.c b/arch/arm/mach-gemini/reset.c
index b26659759e27..21a6d6d4f9c4 100644
--- a/arch/arm/mach-gemini/reset.c
+++ b/arch/arm/mach-gemini/reset.c
@@ -14,7 +14,9 @@
#include <mach/hardware.h>
#include <mach/global_reg.h>
-void gemini_restart(char mode, const char *cmd)
+#include "common.h"
+
+void gemini_restart(enum reboot_mode mode, const char *cmd)
{
__raw_writel(RESET_GLOBAL | RESET_CPU1,
IO_ADDRESS(GEMINI_GLOBAL_BASE) + GLOBAL_RESET);