aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/iio/dac/ad7303.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/iio/dac/ad7303.c b/drivers/iio/dac/ad7303.c
index 85aeef60dc5f..d546f50f9258 100644
--- a/drivers/iio/dac/ad7303.c
+++ b/drivers/iio/dac/ad7303.c
@@ -235,8 +235,10 @@ static int ad7303_probe(struct spi_device *spi)
235 235
236 if (ext_ref) { 236 if (ext_ref) {
237 st->vref_reg = regulator_get(&spi->dev, "REF"); 237 st->vref_reg = regulator_get(&spi->dev, "REF");
238 if (IS_ERR(st->vref_reg)) 238 if (IS_ERR(st->vref_reg)) {
239 ret = PTR_ERR(st->vref_reg);
239 goto err_disable_vdd_reg; 240 goto err_disable_vdd_reg;
241 }
240 242
241 ret = regulator_enable(st->vref_reg); 243 ret = regulator_enable(st->vref_reg);
242 if (ret) 244 if (ret)