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

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

In the case of platform_get_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 55be6fd2
...@@ -1182,7 +1182,7 @@ static int imx7_csi_probe(struct platform_device *pdev) ...@@ -1182,7 +1182,7 @@ static int imx7_csi_probe(struct platform_device *pdev)
csi->irq = platform_get_irq(pdev, 0); csi->irq = platform_get_irq(pdev, 0);
if (csi->irq < 0) { if (csi->irq < 0) {
dev_err(dev, "Missing platform resources data\n"); dev_err(dev, "Missing platform resources data\n");
return -ENODEV; return csi->irq;
} }
csi->regbase = devm_platform_ioremap_resource(pdev, 0); csi->regbase = devm_platform_ioremap_resource(pdev, 0);
......
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