parisc: Directly call machine_power_off() in power button driver

Signed-off-by: Helge Deller <deller@gmx.de>
Tested-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
Helge Deller 2018-03-24 21:00:14 +01:00
parent 24002d5937
commit c14b302c44

View File

@ -95,8 +95,7 @@ static void process_shutdown(void)
/* send kill signal */
if (kill_cad_pid(SIGINT, 1)) {
/* just in case killing init process failed */
if (pm_power_off)
pm_power_off();
machine_power_off();
}
}
}