diff options
Diffstat (limited to 'drivers/media/video/davinci/vpif_capture.c')
-rw-r--r-- | drivers/media/video/davinci/vpif_capture.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/video/davinci/vpif_capture.c b/drivers/media/video/davinci/vpif_capture.c index 6504e40a31dd..96046957bf21 100644 --- a/drivers/media/video/davinci/vpif_capture.c +++ b/drivers/media/video/davinci/vpif_capture.c | |||
@@ -2228,6 +2228,10 @@ static __init int vpif_probe(struct platform_device *pdev) | |||
2228 | common = &(ch->common[VPIF_VIDEO_INDEX]); | 2228 | common = &(ch->common[VPIF_VIDEO_INDEX]); |
2229 | spin_lock_init(&common->irqlock); | 2229 | spin_lock_init(&common->irqlock); |
2230 | mutex_init(&common->lock); | 2230 | mutex_init(&common->lock); |
2231 | /* Locking in file operations other than ioctl should be done | ||
2232 | by the driver, not the V4L2 core. | ||
2233 | This driver needs auditing so that this flag can be removed. */ | ||
2234 | set_bit(V4L2_FL_LOCK_ALL_FOPS, &ch->video_dev->flags); | ||
2231 | ch->video_dev->lock = &common->lock; | 2235 | ch->video_dev->lock = &common->lock; |
2232 | /* Initialize prio member of channel object */ | 2236 | /* Initialize prio member of channel object */ |
2233 | v4l2_prio_init(&ch->prio); | 2237 | v4l2_prio_init(&ch->prio); |