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: 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>
This commit is contained in:
parent
55be6fd274
commit
b761151f40
@ -1182,7 +1182,7 @@ static int imx7_csi_probe(struct platform_device *pdev)
|
||||
csi->irq = platform_get_irq(pdev, 0);
|
||||
if (csi->irq < 0) {
|
||||
dev_err(dev, "Missing platform resources data\n");
|
||||
return -ENODEV;
|
||||
return csi->irq;
|
||||
}
|
||||
|
||||
csi->regbase = devm_platform_ioremap_resource(pdev, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user