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

  arch/arm/mach-zynq/common.c:110:2: warning: initialization from incompatible pointer type [enabled by default]
  arch/arm/mach-zynq/common.c:110:2: warning: (near initialization for ‘__mach_desc_XILINX_EP107.restart’) [enabled by default]

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

index 5b799c29886e544778d115a0e7570f3f100875ad..5f252569c68987d908546b55bb921d5f7693c7af 100644 (file)
@@ -91,7 +91,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();
 }