diff options
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2011-06-29 07:46:40 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-07-27 17:56:08 -0300 |
commit | 7a05dfeddee9ffc2405230759ef32ecb603e3f48 (patch) | |
tree | f23960145913e8a058572018b750ac1933149a82 | |
parent | 033d7463f816315308ffec6f69576d820bfbab0c (diff) | |
download | linux-3.10-7a05dfeddee9ffc2405230759ef32ecb603e3f48.tar.gz linux-3.10-7a05dfeddee9ffc2405230759ef32ecb603e3f48.tar.bz2 linux-3.10-7a05dfeddee9ffc2405230759ef32ecb603e3f48.zip |
[media] V4L: soc-camera: group struct field initialisations together
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/media/video/soc_camera.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/video/soc_camera.c b/drivers/media/video/soc_camera.c index 5084e72d496..96bed292c54 100644 --- a/drivers/media/video/soc_camera.c +++ b/drivers/media/video/soc_camera.c @@ -1118,8 +1118,6 @@ static int soc_camera_probe(struct device *dev) icd->field = V4L2_FIELD_ANY; - icd->vdev->lock = &icd->video_lock; - /* * ..._video_start() will create a device node, video_register_device() * itself is protected against concurrent open() calls, but we also have @@ -1468,6 +1466,7 @@ static int video_dev_create(struct soc_camera_device *icd) vdev->ioctl_ops = &soc_camera_ioctl_ops; vdev->release = video_device_release; vdev->tvnorms = V4L2_STD_UNKNOWN; + vdev->lock = &icd->video_lock; icd->vdev = vdev; |