summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2014-06-04 22:46:23 +0400
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-07-26 07:37:26 +0400
commit7d37743a3ef0980432cb4fdf8e3906c54d6fb1dd (patch)
tree3da38808583c03b2ed2308f6b5c215620ae53f2b
parent356237d67a447138ec0cae723c0a3e755e3a5a85 (diff)
downloadlinux-7d37743a3ef0980432cb4fdf8e3906c54d6fb1dd.tar.xz
[media] coda: Return the real error on platform_get_irq()
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>
-rw-r--r--drivers/media/platform/coda.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/coda.c b/drivers/media/platform/coda.c
index 18758e244346..840402f57e2b 100644
--- 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,