summaryrefslogtreecommitdiffstats
path: root/drivers/iio/adc/spear_adc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio/adc/spear_adc.c')
-rw-r--r--drivers/iio/adc/spear_adc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iio/adc/spear_adc.c b/drivers/iio/adc/spear_adc.c
index d93e580b3dc5..ad54ef798109 100644
--- a/drivers/iio/adc/spear_adc.c
+++ b/drivers/iio/adc/spear_adc.c
@@ -310,8 +310,8 @@ static int spear_adc_probe(struct platform_device *pdev)
}
irq = platform_get_irq(pdev, 0);
- if (irq <= 0) {
- ret = -EINVAL;
+ if (irq < 0) {
+ ret = irq;
goto errout2;
}