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

power: supply: twl4030_madc: Use devm_power_supply_register() helper



Use the device lifecycle managed register function. This helps prevent
mistakes like unregistering out of order in cleanup functions and
forgetting to unregister on error paths.

Signed-off-by: default avatarAndrew Davis <afd@ti.com>
Link: https://lore.kernel.org/r/20240123163653.384385-22-afd@ti.com


Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent 8ac67534
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