]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: adc128s052: Fix the error handling path of 'adc128_probe()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 21 Aug 2021 10:37:24 +0000 (12:37 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 29 Aug 2021 17:14:47 +0000 (18:14 +0100)
commitce9e3d5989e549721115cd2cdac51e1826219097
treec39d03148d27cdfad1df88bb263f199b6a050550
parentf2223affb474fda3d1e486e7f1c5e8c6d139bce3
iio: adc128s052: Fix the error handling path of 'adc128_probe()'

A successful 'regulator_enable()' call should be balanced by a
corresponding 'regulator_disable()' call in the error handling path of the
probe, as already done in the remove function.

Update the error handling path accordingly.

Fixes: 913b86468674 ("iio: adc: Add TI ADC128S052")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Link: https://lore.kernel.org/r/85189f1cfcf6f5f7b42d8730966f2a074b07b5f5.1629542160.git.christophe.jaillet@wanadoo.fr
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ti-adc128s052.c