[media] coda: Return the real error on platform_get_irq()
authorFabio Estevam <fabio.estevam@freescale.com>
Wed, 4 Jun 2014 18:46:23 +0000 (15:46 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Sat, 26 Jul 2014 03:37:26 +0000 (00:37 -0300)
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>
drivers/media/platform/coda.c

index 18758e2443469760ff657e7eb24d94fec7536a9e..840402f57e2b9494a601f999fd7989c9b6f3334a 100644 (file)
@@ -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,