summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/smpboot.c
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2020-05-09 10:23:23 +0200
committerSebastian Reichel <sre@kernel.org>2020-05-10 01:20:41 +0200
commit934ed3847a4ebc75b655659c4d2349ba4337941c (patch)
treef8053cead16b9d7911ff7006fed2b63d12a5f270 /arch/x86/kernel/smpboot.c
parentdt-bindings: power: reset: Convert syscon-reboot-mode to DT schema (diff)
downloadlinux-934ed3847a4ebc75b655659c4d2349ba4337941c.tar.xz
linux-934ed3847a4ebc75b655659c4d2349ba4337941c.zip
power: supply: lp8788: Fix an error handling path in 'lp8788_charger_probe()'
In the probe function, in case of error, resources allocated in 'lp8788_setup_adc_channel()' must be released. This can be achieved easily by using the devm_ variant of 'iio_channel_get()'. This has the extra benefit to simplify the remove function and to axe the 'lp8788_release_adc_channel()' function which is now useless. Fixes: 98a276649358 ("power_supply: Add new lp8788 charger driver") Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'arch/x86/kernel/smpboot.c')
0 files changed, 0 insertions, 0 deletions