During client probing we only have to turn on the host's clock, no need to
actually attach the client to the host.
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
ssdd->reset(icd->pdev);
mutex_lock(&ici->host_lock);
- ret = soc_camera_add_device(icd);
+ ret = ici->ops->clock_start(ici);
mutex_unlock(&ici->host_lock);
if (ret < 0)
goto eadd;
icd->field = mf.field;
}
- soc_camera_remove_device(icd);
+ ici->ops->clock_stop(ici);
mutex_unlock(&ici->host_lock);
icd->vdev = NULL;
evdc:
mutex_lock(&ici->host_lock);
- soc_camera_remove_device(icd);
+ ici->ops->clock_stop(ici);
mutex_unlock(&ici->host_lock);
eadd:
v4l2_ctrl_handler_free(&icd->ctrl_handler);