--- zzzz-none-000/linux-3.10.107/drivers/power/reset/restart-poweroff.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/drivers/power/reset/restart-poweroff.c 2021-02-04 17:41:59.000000000 +0000 @@ -15,11 +15,12 @@ #include #include #include -#include +#include static void restart_poweroff_do_poweroff(void) { - arm_pm_restart('h', NULL); + reboot_mode = REBOOT_HARD; + machine_restart(NULL); } static int restart_poweroff_probe(struct platform_device *pdev) @@ -53,7 +54,6 @@ .remove = restart_poweroff_remove, .driver = { .name = "poweroff-restart", - .owner = THIS_MODULE, .of_match_table = of_restart_poweroff_match, }, }; @@ -61,5 +61,5 @@ MODULE_AUTHOR("Andrew Lunn