summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorHartmut Knaack <knaack.h@gmx.de>2015-07-28 00:38:58 +0200
committerJonathan Cameron <jic23@kernel.org>2015-08-02 19:05:51 +0100
commit19d566420b8c5a26d4f9666ef665e088173d3df3 (patch)
tree3bdfca281b8e4dcb81b0a58d1a9a012fbd7c5465 /drivers
parent5e37c523921480093323c06529ab854f0635c59d (diff)
downloadblackbird-op-linux-19d566420b8c5a26d4f9666ef665e088173d3df3.tar.gz
blackbird-op-linux-19d566420b8c5a26d4f9666ef665e088173d3df3.zip
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')
-rw-r--r--drivers/iio/adc/berlin2-adc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iio/adc/berlin2-adc.c b/drivers/iio/adc/berlin2-adc.c
index aecc9ad995ad..30e2090df96d 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);
OpenPOWER on IntegriCloud