projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49d916e
)
iio: mxs-lradc: Propagate the real error code on platform_get_irq() failure
author
Fabio Estevam
<fabio.estevam@freescale.com>
Fri, 14 Feb 2014 03:28:00 +0000
(
03:28
+0000)
committer
Jonathan Cameron
<jic23@kernel.org>
Sat, 15 Feb 2014 12:32:35 +0000
(12:32 +0000)
No need to return a 'fake' return value on platform_get_irq() failure.
Just return the error code itself instead.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Marek Vasut <marex@denx.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/adc/mxs-lradc.c
patch
|
blob
|
history
diff --git
a/drivers/staging/iio/adc/mxs-lradc.c
b/drivers/staging/iio/adc/mxs-lradc.c
index d304156ca2f7f5c8a5aea3ae81e84ceb7f124620..ab3c0d4ba68ea333be160dc0ca8e578416358a8c 100644
(file)
--- a/
drivers/staging/iio/adc/mxs-lradc.c
+++ b/
drivers/staging/iio/adc/mxs-lradc.c
@@
-1558,7
+1558,7
@@
static int mxs_lradc_probe(struct platform_device *pdev)
for (i = 0; i < of_cfg->irq_count; i++) {
lradc->irq[i] = platform_get_irq(pdev, i);
if (lradc->irq[i] < 0)
- return
-EINVAL
;
+ return
lradc->irq[i]
;
ret = devm_request_irq(dev, lradc->irq[i],
mxs_lradc_handle_irq, 0,