]> Git Repo - linux.git/commitdiff
ARM: shmobile: armadillo800eva-reference: fix compiler warning
authorGuennadi Liakhovetski <[email protected]>
Fri, 19 Jul 2013 16:02:16 +0000 (18:02 +0200)
committerSimon Horman <[email protected]>
Tue, 23 Jul 2013 01:35:33 +0000 (10:35 +0900)
Fix the compiler warning:

arch/arm/mach-shmobile/board-armadillo800eva-reference.c:196:2: warning: initialization from incompatible pointer type [enabled by default]
arch/arm/mach-shmobile/board-armadillo800eva-reference.c:196:2: warning: (near initialization for '__mach_desc_ARMADILLO800EVA_DT.restart') [enabled by default]

While at it also remove superfluous parenthesis.

Signed-off-by: Guennadi Liakhovetski <[email protected]>
Signed-off-by: Simon Horman <[email protected]>
arch/arm/mach-shmobile/board-armadillo800eva-reference.c

index 03b85fec2ddbea46eedeb725a206a6fa6bd73e2b..8f677df2d4c4d997a08f901f5043423f2e0b30e9 100644 (file)
@@ -190,10 +190,10 @@ static void __init eva_init(void)
 }
 
 #define RESCNT2 IOMEM(0xe6188020)
-static void eva_restart(char mode, const char *cmd)
+static void eva_restart(enum reboot_mode mode, const char *cmd)
 {
        /* Do soft power on reset */
-       writel((1 << 31), RESCNT2);
+       writel(1 << 31, RESCNT2);
 }
 
 static const char *eva_boards_compat_dt[] __initdata = {
This page took 0.088752 seconds and 4 git commands to generate.