Commit 59e45933 authored by Fabio Estevam's avatar Fabio Estevam Committed by Mauro Carvalho Chehab
Browse files

media: imx7-media-csi: Propagate the correct error for devm_request_irq()



In the case of devm_request_irq() failure, let's propagate the real error
code instead of a fake one.

Signed-off-by: default avatarFabio Estevam <festevam@gmail.com>
Tested-by: default avatarRui Miguel Silva <rmfrfs@gmail.com>
Reviewed-by: default avatarRui Miguel Silva <rmfrfs@gmail.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent b761151f
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;
	}