[media] v4l: omap4iss: Move code out of mutex-protected section
[deliverable/linux.git] / drivers / staging / media / omap4iss / iss_video.c
index 63419b3769b5e792bea0435327490e08ec7092c2..68006231cc414db49ce04498ee36e5bd926ba351 100644 (file)
@@ -243,12 +243,11 @@ __iss_video_get_format(struct iss_video *video, struct v4l2_format *format)
        if (subdev == NULL)
                return -EINVAL;
 
-       mutex_lock(&video->mutex);
-
        fmt.pad = pad;
        fmt.which = V4L2_SUBDEV_FORMAT_ACTIVE;
-       ret = v4l2_subdev_call(subdev, pad, get_fmt, NULL, &fmt);
 
+       mutex_lock(&video->mutex);
+       ret = v4l2_subdev_call(subdev, pad, get_fmt, NULL, &fmt);
        mutex_unlock(&video->mutex);
 
        if (ret)
This page took 0.076395 seconds and 5 git commands to generate.