ARM: keystone: fix compilation warning
authorVincent Stehlé <vincent.stehle@freescale.com>
Thu, 27 Jun 2013 12:49:27 +0000 (14:49 +0200)
committerOlof Johansson <olof@lixom.net>
Tue, 23 Jul 2013 18:03:54 +0000 (11:03 -0700)
Fix the following compilation warning:

  arch/arm/mach-keystone/keystone.c:74:2: warning: initialization from incompatible pointer type [enabled by default]
  arch/arm/mach-keystone/keystone.c:74:2: warning: (near initialization for ‘__mach_desc_KEYSTONE.restart’) [enabled by default]

Signed-off-by: Vincent Stehlé <vincent.stehle@freescale.com>
Cc: Robin Holt <holt@sgi.com>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: trivial@kernel.org
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm/mach-keystone/keystone.c

index fe4d9ff93a7ef8560cd6948aaa99720242df5865..b661c5c2870a88d09a76b51d7166650a693250ac 100644 (file)
@@ -49,7 +49,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;