xtensa: drop platform_halt and platform_power_off
authorMax Filippov <jcmvbkbc@gmail.com>
Wed, 7 Jun 2023 15:59:38 +0000 (08:59 -0700)
committerMax Filippov <jcmvbkbc@gmail.com>
Tue, 13 Jun 2023 02:48:56 +0000 (19:48 -0700)
commit7561dfbf3b3451957c5d3fc52f53c78e78ed3034
tree9888ce0b5feae5969c04ebc2aaba66dda600bc82
parent11976fe2a47aa952b8fec54bc2bd54d57642f650
xtensa: drop platform_halt and platform_power_off

Instead of using xtensa-specific platform_halt and platform_power_off
callbacks use do_kernel_power_off in the machine_halt and
machine_power_off and reimplement existing platform_halt and
platform_power_off users with register_sys_off_handler.

Drop platform_halt and platform_power_off declarations and default
implementations.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/include/asm/platform.h
arch/xtensa/kernel/platform.c
arch/xtensa/kernel/setup.c
arch/xtensa/platforms/iss/setup.c
arch/xtensa/platforms/xt2000/setup.c
arch/xtensa/platforms/xtfpga/setup.c