diff options
author | Fabio Estevam <festevam@gmail.com> | 2019-05-04 10:40:22 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-05-28 14:17:48 -0400 |
commit | b761151f40d5ecd4fcbaf9ebd9c16fe3a1a2e96c (patch) | |
tree | f5ed7afb9912b71b4e3aaeb1c355ade10a528723 /drivers/staging/media/imx | |
parent | 55be6fd2742ab54a13460c929ac2c40a04ce7d7d (diff) |
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>
Diffstat (limited to 'drivers/staging/media/imx')
-rw-r--r-- | drivers/staging/media/imx/imx7-media-csi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/media/imx/imx7-media-csi.c b/drivers/staging/media/imx/imx7-media-csi.c index 2dc27619f25d..4607cee4baba 100644 --- a/drivers/staging/media/imx/imx7-media-csi.c +++ b/drivers/staging/media/imx/imx7-media-csi.c @@ -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); |