aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/mem2mem_testdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/mem2mem_testdev.c')
-rw-r--r--drivers/media/video/mem2mem_testdev.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/media/video/mem2mem_testdev.c b/drivers/media/video/mem2mem_testdev.c
index 12897e8a3314..d2dec585e61b 100644
--- a/drivers/media/video/mem2mem_testdev.c
+++ b/drivers/media/video/mem2mem_testdev.c
@@ -40,7 +40,7 @@ MODULE_VERSION("0.1.1");
40#define MIN_H 32 40#define MIN_H 32
41#define MAX_W 640 41#define MAX_W 640
42#define MAX_H 480 42#define MAX_H 480
43#define DIM_ALIGN_MASK 0x08 /* 8-alignment for dimensions */ 43#define DIM_ALIGN_MASK 7 /* 8-byte alignment for line length */
44 44
45/* Flags that indicate a format can be used for capture/output */ 45/* Flags that indicate a format can be used for capture/output */
46#define MEM2MEM_CAPTURE (1 << 0) 46#define MEM2MEM_CAPTURE (1 << 0)
@@ -958,6 +958,10 @@ static int m2mtest_probe(struct platform_device *pdev)
958 } 958 }
959 959
960 *vfd = m2mtest_videodev; 960 *vfd = m2mtest_videodev;
961 /* Locking in file operations other than ioctl should be done
962 by the driver, not the V4L2 core.
963 This driver needs auditing so that this flag can be removed. */
964 set_bit(V4L2_FL_LOCK_ALL_FOPS, &vfd->flags);
961 vfd->lock = &dev->dev_mutex; 965 vfd->lock = &dev->dev_mutex;
962 966
963 ret = video_register_device(vfd, VFL_TYPE_GRABBER, 0); 967 ret = video_register_device(vfd, VFL_TYPE_GRABBER, 0);