summaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2013-04-18 18:35:23 -0300
committerMauro Carvalho Chehab <m.chehab@samsung.com>2013-10-31 04:28:58 -0200
commit507fcd3da2a28b5342cd0e3eea69b886741adb60 (patch)
treea9f2abbc5d34020a5a3b88faa4520d98cd1902eb /drivers/media
parent1bfa6e0d1f7f42ea52c79051f027dbcf8f123e41 (diff)
downloadop-kernel-dev-507fcd3da2a28b5342cd0e3eea69b886741adb60.zip
op-kernel-dev-507fcd3da2a28b5342cd0e3eea69b886741adb60.tar.gz
[media] imx074: fix error handling for failed async subdevice registration
If v4l2_async_register_subdev() fails, don't skip the clean up. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/i2c/soc_camera/imx074.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/i2c/soc_camera/imx074.c b/drivers/media/i2c/soc_camera/imx074.c
index 1d384a3..5b91593 100644
--- a/drivers/media/i2c/soc_camera/imx074.c
+++ b/drivers/media/i2c/soc_camera/imx074.c
@@ -451,7 +451,9 @@ static int imx074_probe(struct i2c_client *client,
if (ret < 0)
goto eprobe;
- return v4l2_async_register_subdev(&priv->subdev);
+ ret = v4l2_async_register_subdev(&priv->subdev);
+ if (!ret)
+ return 0;
epwrinit:
eprobe:
OpenPOWER on IntegriCloud