[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:
parent
356237d67a
commit
7d37743a3e
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue