|
@@ -1184,7 +1184,8 @@ static int soc_camera_probe(struct soc_camera_device *icd)
|
|
|
sd->grp_id = soc_camera_grp_id(icd);
|
|
|
v4l2_set_subdev_hostdata(sd, icd);
|
|
|
|
|
|
- if (v4l2_ctrl_add_handler(&icd->ctrl_handler, sd->ctrl_handler, NULL))
|
|
|
+ ret = v4l2_ctrl_add_handler(&icd->ctrl_handler, sd->ctrl_handler, NULL);
|
|
|
+ if (ret < 0)
|
|
|
goto ectrl;
|
|
|
|
|
|
/* At this point client .probe() should have run already */
|