[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>
This commit is contained in:
Fabio Estevam 2014-06-04 15:46:23 -03:00 committed by Mauro Carvalho Chehab
parent 356237d67a
commit 7d37743a3e
1 changed files with 1 additions and 1 deletions

View File

@ -3770,7 +3770,7 @@ static int coda_probe(struct platform_device *pdev)
irq = platform_get_irq(pdev, 0); irq = platform_get_irq(pdev, 0);
if (irq < 0) { if (irq < 0) {
dev_err(&pdev->dev, "failed to get irq resource\n"); 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, if (devm_request_threaded_irq(&pdev->dev, irq, NULL, coda_irq_handler,