aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/iio/adc/vf610_adc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/iio/adc/vf610_adc.c b/drivers/iio/adc/vf610_adc.c
index 7ec21b5612ef..ebb73f5d3c3a 100644
--- a/drivers/iio/adc/vf610_adc.c
+++ b/drivers/iio/adc/vf610_adc.c
@@ -610,8 +610,7 @@ static int vf610_adc_probe(struct platform_device *pdev)
610 if (IS_ERR(info->clk)) { 610 if (IS_ERR(info->clk)) {
611 dev_err(&pdev->dev, "failed getting clock, err = %ld\n", 611 dev_err(&pdev->dev, "failed getting clock, err = %ld\n",
612 PTR_ERR(info->clk)); 612 PTR_ERR(info->clk));
613 ret = PTR_ERR(info->clk); 613 return PTR_ERR(info->clk);
614 return ret;
615 } 614 }
616 615
617 info->vref = devm_regulator_get(&pdev->dev, "vref"); 616 info->vref = devm_regulator_get(&pdev->dev, "vref");