]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
riscv: sbi: Switch to new sys-off handler API
authorAndrew Davis <afd@ti.com>
Wed, 13 Aug 2025 15:18:55 +0000 (10:18 -0500)
committerPaul Walmsley <pjw@kernel.org>
Thu, 18 Sep 2025 23:48:04 +0000 (17:48 -0600)
commit70ddf86d76c1a560095c397c01b0862fe302b500
tree6994d0a36eb183870a9acfa5915a1a3af04f0f49
parent16d18e3eaf29be1d987f5238ec03226f15dad5f5
riscv: sbi: Switch to new sys-off handler API

Kernel now supports chained power-off handlers. Use
register_platform_power_off() that registers a platform level power-off
handler. Legacy pm_power_off() will be removed once all drivers and archs
are converted to the new sys-off API.

Signed-off-by: Andrew Davis <afd@ti.com>
Tested-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Link: https://lore.kernel.org/r/20250813151855.105237-1-afd@ti.com
Signed-off-by: Paul Walmsley <pjw@kernel.org>
arch/riscv/kernel/sbi.c