diff options
author | Hartmut Knaack <knaack.h@gmx.de> | 2015-07-27 22:38:58 (GMT) |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-08-02 18:05:51 (GMT) |
commit | 19d566420b8c5a26d4f9666ef665e088173d3df3 (patch) | |
tree | 3bdfca281b8e4dcb81b0a58d1a9a012fbd7c5465 /drivers/iio | |
parent | 5e37c523921480093323c06529ab854f0635c59d (diff) | |
download | linux-19d566420b8c5a26d4f9666ef665e088173d3df3.tar.xz |
iio:adc:berlin2-adc: pass up real error code
Pass up the real error code returned by platform_get_irq_byname().
Signed-off-by: Hartmut Knaack <knaack.h@gmx.de>
Acked-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio')
-rw-r--r-- | drivers/iio/adc/berlin2-adc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iio/adc/berlin2-adc.c b/drivers/iio/adc/berlin2-adc.c index aecc9ad..30e2090 100644 --- a/drivers/iio/adc/berlin2-adc.c +++ b/drivers/iio/adc/berlin2-adc.c @@ -301,11 +301,11 @@ static int berlin2_adc_probe(struct platform_device *pdev) irq = platform_get_irq_byname(pdev, "adc"); if (irq < 0) - return -ENODEV; + return irq; tsen_irq = platform_get_irq_byname(pdev, "tsen"); if (tsen_irq < 0) - return -ENODEV; + return tsen_irq; ret = devm_request_irq(&pdev->dev, irq, berlin2_adc_irq, 0, pdev->dev.driver->name, indio_dev); |