Skip to content
Commit 14c56787 authored by Andrew Davis's avatar Andrew Davis Committed by Sebastian Reichel
Browse files

power: reset: syscon-poweroff: Use devm_register_sys_off_handler(POWER_OFF)



Use device life-cycle managed register function to simplify probe and
exit paths.

This also makes our data struct per-device and not global, which allows
for more than one instance of this device.

Signed-off-by: default avatarAndrew Davis <afd@ti.com>
Reviewed-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20240212162831.67838-20-afd@ti.com


Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent ffa21283
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment