power: supply: 88pm860x: simplify using devm
authorMatti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Wed, 16 Nov 2022 10:05:56 +0000 (12:05 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Thu, 17 Nov 2022 22:47:23 +0000 (23:47 +0100)
commit332d7d0c6dd7db50109d304802e0d1a9d086188f
tree0236aee2d5ca936f22fe009aed71ab0eebb41de0
parent5b79480ce1978864ac3f06f2134dfa3b6691fe74
power: supply: 88pm860x: simplify using devm

Use devm variants for requesting threaded IRQ and for power-supply
registration. Clean up error path and remove the .remove-callback.

Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/88pm860x_charger.c