diff options
Diffstat (limited to 'drivers/media/video/v4l2-ioctl.c')
-rw-r--r-- | drivers/media/video/v4l2-ioctl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/video/v4l2-ioctl.c b/drivers/media/video/v4l2-ioctl.c index 55df1436f835..48b94fcb6a25 100644 --- a/drivers/media/video/v4l2-ioctl.c +++ b/drivers/media/video/v4l2-ioctl.c | |||
@@ -16,6 +16,7 @@ | |||
16 | #include <linux/slab.h> | 16 | #include <linux/slab.h> |
17 | #include <linux/types.h> | 17 | #include <linux/types.h> |
18 | #include <linux/kernel.h> | 18 | #include <linux/kernel.h> |
19 | #include <linux/version.h> | ||
19 | 20 | ||
20 | #include <linux/videodev2.h> | 21 | #include <linux/videodev2.h> |
21 | 22 | ||
@@ -605,6 +606,7 @@ static long __video_do_ioctl(struct file *file, | |||
605 | if (!ops->vidioc_querycap) | 606 | if (!ops->vidioc_querycap) |
606 | break; | 607 | break; |
607 | 608 | ||
609 | cap->version = LINUX_VERSION_CODE; | ||
608 | ret = ops->vidioc_querycap(file, fh, cap); | 610 | ret = ops->vidioc_querycap(file, fh, cap); |
609 | if (!ret) | 611 | if (!ret) |
610 | dbgarg(cmd, "driver=%s, card=%s, bus=%s, " | 612 | dbgarg(cmd, "driver=%s, card=%s, bus=%s, " |