git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
356237d
)
[media] coda: Return the real error on platform_get_irq()
author
Fabio Estevam
<fabio.estevam@freescale.com>
Wed, 4 Jun 2014 18:46:23 +0000
(15:46 -0300)
committer
Mauro Carvalho Chehab
<m.chehab@samsung.com>
Sat, 26 Jul 2014 03:37:26 +0000
(
00:37
-0300)
No need to return a 'fake' return value on platform_get_irq() failure.
Propagate the real error instead.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/coda.c
patch
|
blob
|
history
diff --git
a/drivers/media/platform/coda.c
b/drivers/media/platform/coda.c
index
18758e2
..
840402f
100644
(file)
--- a/
drivers/media/platform/coda.c
+++ b/
drivers/media/platform/coda.c
@@
-3770,7
+3770,7
@@
static int coda_probe(struct platform_device *pdev)
irq = platform_get_irq(pdev, 0);
if (irq < 0) {
dev_err(&pdev->dev, "failed to get irq resource\n");
- return
-ENOENT
;
+ return
irq
;
}
if (devm_request_threaded_irq(&pdev->dev, irq, NULL, coda_irq_handler,