Skip to content
Commit 1b1305e9 authored by Samuel Holland's avatar Samuel Holland Committed by Lee Jones
Browse files

mfd: axp20x: Switch to the sys-off handler API



This removes a layer of indirection through pm_power_off() and allows
the PMIC handler to be used as a fallback when firmware power off fails.
This happens on boards like the Clockwork DevTerm R-01 where OpenSBI
does not know how to use the PMIC to power off the board.

Move the check for AXP288 to avoid registering a dummy handler.

Signed-off-by: default avatarSamuel Holland <samuel@sholland.org>
[Lee: Removed superfluous new line]
Signed-off-by: default avatarLee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20221228162752.14204-1-samuel@sholland.org
parent 88a32c2c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment