Skip to content

Commit

Permalink
ARM: shmobile: armadillo800eva-reference: fix compiler warning
Browse files Browse the repository at this point in the history
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 <g.liakhovetski+renesas@gmail.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
  • Loading branch information
Guennadi Liakhovetski authored and Simon Horman committed Jul 23, 2013
1 parent 93d8a6f commit ab40900
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/arm/mach-shmobile/board-armadillo800eva-reference.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit ab40900

Please sign in to comment.