media: imx7-media-csi: Propagate the correct error for devm_request_irq()
authorFabio Estevam <festevam@gmail.com>
Sat, 4 May 2019 14:40:23 +0000 (10:40 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 28 May 2019 18:18:28 +0000 (14:18 -0400)
In the case of devm_request_irq() failure, let's propagate the real error
code instead of a fake one.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Tested-by: Rui Miguel Silva <rmfrfs@gmail.com>
Reviewed-by: Rui Miguel Silva <rmfrfs@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/staging/media/imx/imx7-media-csi.c

index 4607cee..a79b6f4 100644 (file)
@@ -1199,7 +1199,6 @@ static int imx7_csi_probe(struct platform_device *pdev)
                               (void *)csi);
        if (ret < 0) {
                dev_err(dev, "Request CSI IRQ failed.\n");
-               ret = -ENODEV;
                goto destroy_mutex;
        }