diff options
author | Hans de Goede <[email protected]> | 2017-12-26 13:59:09 +0100 |
---|---|---|
committer | Sebastian Reichel <[email protected]> | 2018-01-08 18:38:57 +0100 |
commit | 165c2357744e41391902a2a72dd170beb60c28d5 (patch) | |
tree | 5ece2c7998f05ade10ec4629e2d46426eab21545 /lib/test_overflow.c | |
parent | 8c0a0a2959565d39b0f1b9685dc05f00caa04789 (diff) |
power: supply: axp288_charger: Properly stop work on probe-error / remove
Properly stop any work we may have queued on probe-errors / remove.
Rather then adding a remove driver callback for this, and goto style
error handling to probe, use a devm_action for this.
The devm_action gets registered before we register any of the extcon
notifiers which may queue the work, devm does cleanup in reverse order,
so this ensures that the notifiers are removed before we cancel the work.
Reviewed-by: Chen-Yu Tsai <[email protected]>
Signed-off-by: Hans de Goede <[email protected]>
Signed-off-by: Sebastian Reichel <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions