--- zzzz-none-000/linux-3.10.107/arch/arm/mach-pxa/reset.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/arch/arm/mach-pxa/reset.c 2021-02-04 17:41:59.000000000 +0000 @@ -90,7 +90,7 @@ writel_relaxed(MDREFR_SLFRSH, MDREFR); } -void pxa_restart(char mode, const char *cmd) +void pxa_restart(enum reboot_mode mode, const char *cmd) { local_irq_disable(); local_fiq_disable(); @@ -98,14 +98,14 @@ clear_reset_status(RESET_STATUS_ALL); switch (mode) { - case 's': + case REBOOT_SOFT: /* Jump into ROM at address 0 */ soft_restart(0); break; - case 'g': + case REBOOT_GPIO: do_gpio_reset(); break; - case 'h': + case REBOOT_HARD: default: do_hw_reset(); break;