diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2014-06-04 20:46:23 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-07-26 05:37:26 +0200 |
commit | 7d37743a3ef0980432cb4fdf8e3906c54d6fb1dd (patch) | |
tree | 3da38808583c03b2ed2308f6b5c215620ae53f2b /drivers/media | |
parent | [media] ati_remote: Better default keycodes (diff) | |
download | linux-7d37743a3ef0980432cb4fdf8e3906c54d6fb1dd.tar.xz linux-7d37743a3ef0980432cb4fdf8e3906c54d6fb1dd.zip |
[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>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/platform/coda.c | 2 |
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, |