aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/s5p-g2d
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/s5p-g2d')
-rw-r--r--drivers/media/video/s5p-g2d/g2d.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/video/s5p-g2d/g2d.c b/drivers/media/video/s5p-g2d/g2d.c
index 789de74014e5..02605cecfd65 100644
--- a/drivers/media/video/s5p-g2d/g2d.c
+++ b/drivers/media/video/s5p-g2d/g2d.c
@@ -762,6 +762,10 @@ static int g2d_probe(struct platform_device *pdev)
762 goto unreg_v4l2_dev; 762 goto unreg_v4l2_dev;
763 } 763 }
764 *vfd = g2d_videodev; 764 *vfd = g2d_videodev;
765 /* Locking in file operations other than ioctl should be done
766 by the driver, not the V4L2 core.
767 This driver needs auditing so that this flag can be removed. */
768 set_bit(V4L2_FL_LOCK_ALL_FOPS, &vfd->flags);
765 vfd->lock = &dev->mutex; 769 vfd->lock = &dev->mutex;
766 ret = video_register_device(vfd, VFL_TYPE_GRABBER, 0); 770 ret = video_register_device(vfd, VFL_TYPE_GRABBER, 0);
767 if (ret) { 771 if (ret) {