summaryrefslogtreecommitdiffstats
path: root/drivers/power/supply/adp5061.c
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2022-02-13 18:07:03 +0100
committerSebastian Reichel <sebastian.reichel@collabora.com>2022-02-24 12:16:21 +0100
commitde85193cff0d94d030a53656d8fcc41794807bef (patch)
tree52748346425cddb0ca464d13d237314dddaae2b8 /drivers/power/supply/adp5061.c
parent1ff8cc2ca84d695da3fc30a2ead1054e4c99e2fa (diff)
downloadlinux-de85193cff0d94d030a53656d8fcc41794807bef.tar.gz
linux-de85193cff0d94d030a53656d8fcc41794807bef.tar.bz2
linux-de85193cff0d94d030a53656d8fcc41794807bef.zip
power: supply: sbs-charger: Don't cancel work that is not initialized
This driver can use an interrupt or polling in order get the charger's status. When using polling, a delayed work is used. However, the remove() function unconditionally call cancel_delayed_work_sync(), even if the delayed work is not used and is not initialized. In order to fix it, use devm_delayed_work_autocancel() and remove the now useless remove() function. Fixes: feb583e37f8a ("power: supply: add sbs-charger driver") Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/power/supply/adp5061.c')
0 files changed, 0 insertions, 0 deletions