reboot: arm: change reboot_mode to use enum reboot_mode
[sfrench/cifs-2.6.git] / arch / arm / mach-pxa / corgi.c
index a5b8fead7d61393a8ba9b55c91d074329b7f6010..f162f1b77cd2115cca0bfed2a9006a956b2f4fcf 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)