iio: ad5686: fix optional reference voltage declaration

commit da019f59cb upstream.

When not using the "_optional" function, a dummy regulator is returned
and the driver fails to initialize.

Signed-off-by: Urs Fässler <urs.fassler@bytesatwork.ch>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
This commit is contained in:
Urs Fässler 2015-02-02 17:12:23 +01:00 • committed by Sasha Levin
commit 328499bcb4