ARM: nspire: Fix compiler warning
authorAlexander Shiyan <shc_work@mail.ru>
Thu, 20 Mar 2014 18:25:11 +0000 (22:25 +0400)
committerArnd Bergmann <arnd@arndb.de>
Wed, 26 Mar 2014 22:12:04 +0000 (23:12 +0100)
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 <shc_work@mail.ru>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/mach-nspire/nspire.c

index 4b2ed2e8352f4fd1433e8ac0e41da26d2b3bdbe5..3d24ebf120953d936fa5785fdcd199fcfbf8f1ba 100644 (file)
@@ -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)