]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iio:ad7266: Fix probe deferral for vref
authorMark Brown <broonie@kernel.org>
Mon, 20 Jun 2016 12:53:34 +0000 (13:53 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Mon, 22 Aug 2016 21:38:21 +0000 (22:38 +0100)
commite5dbfa75116a77d70aaf80e79733c47be4891afc
tree4192d1f6241aa78944175ee3e9913e76da2382d2
parent10ac4f5e8b45df715cafad75d14fff6b8d820017
iio:ad7266: Fix probe deferral for vref

commit 68b356eb3d9f5e38910fb62e22a78e2a18d544ae upstream.

Currently the ad7266 driver treats any failure to get vref as though the
regulator were not present but this means that if probe deferral is
triggered the driver will act as though the regulator were not present.
Instead only use the internal reference if we explicitly got -ENODEV which
is what is returned for absent regulators.

Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/iio/adc/ad7266.c