linux/drivers/extcon
Christophe JAILLET c75f1641ef extcon: adc-jack: Fix an error handling path in 'adc_jack_probe()'
[ Upstream commit bc84cff2c9 ]

In some error handling paths, a call to 'iio_channel_get()' is not balanced
by a corresponding call to 'iio_channel_release()'.

This can be achieved easily by using the devm_ variant of
'iio_channel_get()'.

This has the extra benefit to simplify the remove function.

Fixes: 19939860dc ("extcon: adc_jack: adc-jack driver to support 3.5 pi or simliar devices")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-06-24 17:50:36 +02:00
..
Kconfig mfd / platform: cros_ec: Move cros-ec core driver out from MFD 2019-09-02 11:33:12 +01:00
Makefile extcon: Add fsa9480 extcon driver 2019-06-22 21:34:51 +09:00
devres.c
extcon-adc-jack.c extcon: adc-jack: Fix an error handling path in 'adc_jack_probe()' 2020-06-24 17:50:36 +02:00
extcon-arizona.c extcon: arizona: Switch to use device_property_count_u32() 2019-07-24 18:57:42 +09:00
extcon-axp288.c extcon: axp288: Add wakeup support 2020-04-08 09:08:43 +02:00
extcon-fsa9480.c extcon: fsa9480: Support the FSA880 variant 2019-07-24 19:10:19 +09:00
extcon-gpio.c extcon: gpio: Request reasonable interrupts 2019-07-24 19:20:19 +09:00
extcon-intel-cht-wc.c extcon-intel-cht-wc: Don't reset USB data connection at probe 2020-02-01 09:34:46 +00:00
extcon-intel-int3496.c
extcon-intel-mrfld.c
extcon-intel.h
extcon-max3355.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 233 2019-06-19 17:09:06 +02:00
extcon-max8997.c
extcon-max14577.c
extcon-max77693.c
extcon-max77843.c extcon: extcon-max77843: convert to i2c_new_dummy_device 2019-07-24 18:59:05 +09:00
extcon-palmas.c
extcon-ptn5150.c
extcon-qcom-spmi-misc.c
extcon-rt8973a.c
extcon-rt8973a.h
extcon-sm5502.c extcon: sm5502: Reset registers during initialization 2019-12-31 16:44:04 +01:00
extcon-sm5502.h extcon: sm5502: Reset registers during initialization 2019-12-31 16:44:04 +01:00
extcon-usb-gpio.c
extcon-usbc-cros-ec.c mfd / platform: cros_ec: Reorganize platform and mfd includes 2019-09-02 11:33:42 +01:00
extcon.c
extcon.h