From: Alexander Shiyan Date: Thu, 20 Mar 2014 18:25:11 +0000 (+0400) Subject: ARM: nspire: Fix compiler warning X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=27addb96db38fc7279fcd40f9df10438f5dc8f2e;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ARM: nspire: Fix compiler warning CC arch/arm/mach-nspire/nspire.o arch/arm/mach-nspire/nspire.c:79:2: warning: initialization from incompatible pointer type [enabled by default] arch/arm/mach-nspire/nspire.c:79:2: warning: (near initialization for '__mach_desc_NSPIRE.restart') [enabled by default] Signed-off-by: Alexander Shiyan Signed-off-by: Arnd Bergmann --- diff --git a/arch/arm/mach-nspire/nspire.c b/arch/arm/mach-nspire/nspire.c index 4b2ed2e8352f..3d24ebf12095 100644 --- a/arch/arm/mach-nspire/nspire.c +++ b/arch/arm/mach-nspire/nspire.c @@ -63,7 +63,7 @@ static void __init nspire_init(void) nspire_auxdata, NULL); } -static void nspire_restart(char mode, const char *cmd) +static void nspire_restart(enum reboot_mode mode, const char *cmd) { void __iomem *base = ioremap(NSPIRE_MISC_PHYS_BASE, SZ_4K); if (!base)