Commit 7d37743a authored by Fabio Estevam's avatar Fabio Estevam Committed by Mauro Carvalho Chehab

[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: default avatarFabio Estevam <fabio.estevam@freescale.com>
Acked-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent 356237d6
...@@ -3770,7 +3770,7 @@ static int coda_probe(struct platform_device *pdev) ...@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment