aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/adc/vf610_adc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iio/adc/vf610_adc.c b/drivers/iio/adc/vf610_adc.c
index d47fff003b78..8ec353c01d98 100644
--- a/drivers/iio/adc/vf610_adc.c
+++ b/drivers/iio/adc/vf610_adc.c
@@ -593,9 +593,9 @@ static int vf610_adc_probe(struct platform_device *pdev)
593 return PTR_ERR(info->regs); 593 return PTR_ERR(info->regs);
594 594
595 irq = platform_get_irq(pdev, 0); 595 irq = platform_get_irq(pdev, 0);
596 if (irq <= 0) { 596 if (irq < 0) {
597 dev_err(&pdev->dev, "no irq resource?\n"); 597 dev_err(&pdev->dev, "no irq resource?\n");
598 return -EINVAL; 598 return irq;
599 } 599 }
600 600
601 ret = devm_request_irq(info->dev, irq, 601 ret = devm_request_irq(info->dev, irq,