summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/power
diff options
context:
space:
mode:
authorIskren Chernev <iskren.chernev@gmail.com>2020-09-22 14:42:31 +0300
committerSebastian Reichel <sebastian.reichel@collabora.com>2020-10-03 13:57:12 +0300
commite55a50613d91515acaddaca8de46162feb9adb45 (patch)
tree12018bee81a8f71aeb6aebb69d08e137d6420290 /Documentation/devicetree/bindings/power
parent05f94eb989075f6e5cd99d0772ea160efe41bff4 (diff)
downloadlinux-e55a50613d91515acaddaca8de46162feb9adb45.tar.xz
power: supply: max17040: Use devm_ to automate remove
Two actions were performed during remove - power supply dereg and delayed work cleanup. Power supply dereg can be handled by using the devm_ version of the registration function. Work cleanup can be added as a devm_action. If probe fails after psy registration it will now be cleaned up properly. Signed-off-by: Iskren Chernev <iskren.chernev@gmail.com> Tested-by: Jonathan Bakker <xc-racer2@live.ca> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'Documentation/devicetree/bindings/power')
0 files changed, 0 insertions, 0 deletions