reboot: arm: change reboot_mode to use enum reboot_mode
[cascardo/linux.git] / arch / arm / mach-pxa / corgi.c
index a5b8fea..f162f1b 100644 (file)
@@ -663,16 +663,16 @@ static void corgi_poweroff(void)
                /* Green LED off tells the bootloader to halt */
                gpio_set_value(CORGI_GPIO_LED_GREEN, 0);
 
-       pxa_restart('h', NULL);
+       pxa_restart(REBOOT_HARD, NULL);
 }
 
-static void corgi_restart(char mode, const char *cmd)
+static void corgi_restart(enum reboot_mode mode, const char *cmd)
 {
        if (!machine_is_corgi())
                /* Green LED on tells the bootloader to reboot */
                gpio_set_value(CORGI_GPIO_LED_GREEN, 1);
 
-       pxa_restart('h', cmd);
+       pxa_restart(REBOOT_HARD, cmd);
 }
 
 static void __init corgi_init(void)