diff options
author | Iskren Chernev <[email protected]> | 2020-09-22 14:42:31 +0300 |
---|---|---|
committer | Sebastian Reichel <[email protected]> | 2020-10-03 12:57:12 +0200 |
commit | e55a50613d91515acaddaca8de46162feb9adb45 (patch) | |
tree | 12018bee81a8f71aeb6aebb69d08e137d6420290 /scripts/gcc-plugins/cyc_complexity_plugin.c | |
parent | 05f94eb989075f6e5cd99d0772ea160efe41bff4 (diff) |
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 <[email protected]>
Tested-by: Jonathan Bakker <[email protected]>
Signed-off-by: Sebastian Reichel <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions