summaryrefslogtreecommitdiff
path: root/drivers/extcon/extcon-max14577.c
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2020-05-10 12:53:03 +0300
committerChanwoo Choi <cw00.choi@samsung.com>2020-05-29 11:36:01 +0300
commitbc84cff2c92ae5ccb2c37da73756e7174b1b430f (patch)
tree56ef8b27831dcbe8625b6e432516bf291abf4864 /drivers/extcon/extcon-max14577.c
parent1fa80f182794bbefe8f1bffd74abda5470cdd973 (diff)
downloadlinux-bc84cff2c92ae5ccb2c37da73756e7174b1b430f.tar.xz
extcon: adc-jack: Fix an error handling path in 'adc_jack_probe()'
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: 19939860dcae ("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>
Diffstat (limited to 'drivers/extcon/extcon-max14577.c')
0 files changed, 0 insertions, 0 deletions