Christophe JAILLET
ae7a9734da
extcon: adc-jack: Fix an error handling path in 'adc_jack_probe()'
...
[ Upstream commit bc84cff2c92ae5ccb2c37da73756e7174b1b430f ]
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-30 15:38:28 -04:00
..
devres.c
extcon: Add resource-managed functions to register extcon notifier
2016-06-27 21:03:23 +09:00
extcon-adc-jack.c
extcon: adc-jack: Fix an error handling path in 'adc_jack_probe()'
2020-06-30 15:38:28 -04:00
extcon-arizona.c
extcon: arizona: Disable mic detect if running when driver is removed
2019-05-31 06:48:26 -07:00
extcon-axp288.c
extcon: axp288: Use vbus-valid instead of -present to determine cable presence
2017-10-08 10:26:03 +02:00
extcon-gpio.c
Merge branch 'next' into resolution
2016-09-15 16:45:20 +05:30
extcon-max3355.c
extcon: Use the extcon_set_state_sync() instead of deprecated functions
2016-09-13 11:26:26 +09:00
extcon-max8997.c
extcon: max8997: Fix lack of path setting in USB device mode
2019-12-21 10:40:54 +01:00
extcon-max14577.c
extcon: Use the extcon_set_state_sync() instead of deprecated functions
2016-09-13 11:26:26 +09:00
extcon-max77693.c
extcon: Use the extcon_set_state_sync() instead of deprecated functions
2016-09-13 11:26:26 +09:00
extcon-max77843.c
extcon: Use the extcon_set_state_sync() instead of deprecated functions
2016-09-13 11:26:26 +09:00
extcon-palmas.c
extcon: palmas: Check the parent instance to prevent the NULL
2017-11-21 09:23:21 +01:00
extcon-qcom-spmi-misc.c
extcon: qcom-spmi-misc: Sync the extcon state on interrupt
2016-10-26 16:04:29 +09:00
extcon-rt8973a.c
extcon: Use the extcon_set_state_sync() instead of deprecated functions
2016-09-13 11:26:26 +09:00
extcon-rt8973a.h
extcon: rt8973a: Add Richtek RT8973A extcon driver
2014-09-22 11:43:08 +09:00
extcon-sm5502.c
extcon: sm5502: Reset registers during initialization
2020-01-04 13:39:22 +01:00
extcon-sm5502.h
extcon: sm5502: Reset registers during initialization
2020-01-04 13:39:22 +01:00
extcon-usb-gpio.c
extcon: Use the extcon_set_state_sync() instead of deprecated functions
2016-09-13 11:26:26 +09:00
extcon.c
extcon: Remove potential problem when calling extcon_register_notifier()
2017-11-21 09:23:21 +01:00
Kconfig
extcon: Add support for qcom SPMI PMIC USB id detection hardware
2016-09-13 11:26:26 +09:00
Makefile
extcon: Add support for qcom SPMI PMIC USB id detection hardware
2016-09-13 11:26:26 +09:00