summaryrefslogtreecommitdiff
path: root/drivers/media/i2c/soc_camera/imx074.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/i2c/soc_camera/imx074.c')
-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 1d384a371b41..5b915936c3f3 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: