diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2022-02-13 18:55:05 +0100 |
---|---|---|
committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2022-02-24 12:17:41 +0100 |
commit | 419c0e9d25ac083877eb37143b54eb57af1401dd (patch) | |
tree | 41c477f9a2496da8c11b410f2db473826766085a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | de85193cff0d94d030a53656d8fcc41794807bef (diff) |
power: supply: da9150-fg: Use devm_delayed_work_autocancel()
This driver only uses managed resources, except for the delayed work, if
it is used.
Use devm_delayed_work_autocancel() to also manage the delayed work.
The error handling path of the probe and the remove function can both be
removed.
This saves a few lines of code.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions