summaryrefslogtreecommitdiff
path: root/drivers/iio/adc/lpc32xx_adc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio/adc/lpc32xx_adc.c')
-rw-r--r--drivers/iio/adc/lpc32xx_adc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iio/adc/lpc32xx_adc.c b/drivers/iio/adc/lpc32xx_adc.c
index 732c924a976d..e34ed7dacd89 100644
--- a/drivers/iio/adc/lpc32xx_adc.c
+++ b/drivers/iio/adc/lpc32xx_adc.c
@@ -176,8 +176,8 @@ static int lpc32xx_adc_probe(struct platform_device *pdev)
}
irq = platform_get_irq(pdev, 0);
- if (irq <= 0)
- return -ENXIO;
+ if (irq < 0)
+ return irq;
retval = devm_request_irq(&pdev->dev, irq, lpc32xx_adc_isr, 0,
LPC32XXAD_NAME, st);