]> git.baikalelectronics.ru Git - kernel.git/commit
iio: adc: ad799x: fix probe error handling
authorMarco Felsch <m.felsch@pengutronix.de>
Tue, 17 Sep 2019 16:09:23 +0000 (18:09 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 9 Oct 2019 18:11:29 +0000 (19:11 +0100)
commit4c39cd375aba1f13ac760543a843eec1672b7f27
tree81acb5a81250978ed8ac40c461d5aca5582b26c2
parente7665384c014a6f19a7f15c3137cc78028d9e02f
iio: adc: ad799x: fix probe error handling

Since commit fbfcb5c78969 ("iio:adc:ad799x: Write default config on probe
and reset alert status on probe") the error path is wrong since it
leaves the vref regulator on. Fix this by disabling both regulators.

Fixes: fbfcb5c78969 ("iio:adc:ad799x: Write default config on probe and reset alert status on probe")
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Reviewed-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad799x.c