aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/v4l2-ioctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/v4l2-ioctl.c')
-rw-r--r--drivers/media/video/v4l2-ioctl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/video/v4l2-ioctl.c b/drivers/media/video/v4l2-ioctl.c
index 52d687b165e0..20a571f21577 100644
--- a/drivers/media/video/v4l2-ioctl.c
+++ b/drivers/media/video/v4l2-ioctl.c
@@ -24,6 +24,7 @@
24#endif 24#endif
25#include <media/v4l2-common.h> 25#include <media/v4l2-common.h>
26#include <media/v4l2-ioctl.h> 26#include <media/v4l2-ioctl.h>
27#include <media/v4l2-chip-ident.h>
27#include <linux/video_decoder.h> 28#include <linux/video_decoder.h>
28 29
29#define dbgarg(cmd, fmt, arg...) \ 30#define dbgarg(cmd, fmt, arg...) \
@@ -1745,6 +1746,8 @@ static long __video_do_ioctl(struct file *file,
1745 1746
1746 if (!ops->vidioc_g_chip_ident) 1747 if (!ops->vidioc_g_chip_ident)
1747 break; 1748 break;
1749 p->ident = V4L2_IDENT_NONE;
1750 p->revision = 0;
1748 ret = ops->vidioc_g_chip_ident(file, fh, p); 1751 ret = ops->vidioc_g_chip_ident(file, fh, p);
1749 if (!ret) 1752 if (!ret)
1750 dbgarg(cmd, "chip_ident=%u, revision=0x%x\n", p->ident, p->revision); 1753 dbgarg(cmd, "chip_ident=%u, revision=0x%x\n", p->ident, p->revision);