diff options
Diffstat (limited to 'drivers/media/video/zr364xx.c')
-rw-r--r-- | drivers/media/video/zr364xx.c | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/drivers/media/video/zr364xx.c b/drivers/media/video/zr364xx.c index ea5265c22983..617ed2856b22 100644 --- a/drivers/media/video/zr364xx.c +++ b/drivers/media/video/zr364xx.c | |||
@@ -762,14 +762,7 @@ static const struct file_operations zr364xx_fops = { | |||
762 | .llseek = no_llseek, | 762 | .llseek = no_llseek, |
763 | }; | 763 | }; |
764 | 764 | ||
765 | static struct video_device zr364xx_template = { | 765 | static const struct v4l2_ioctl_ops zr364xx_ioctl_ops = { |
766 | .owner = THIS_MODULE, | ||
767 | .name = DRIVER_DESC, | ||
768 | .type = VID_TYPE_CAPTURE, | ||
769 | .fops = &zr364xx_fops, | ||
770 | .release = video_device_release, | ||
771 | .minor = -1, | ||
772 | |||
773 | .vidioc_querycap = zr364xx_vidioc_querycap, | 766 | .vidioc_querycap = zr364xx_vidioc_querycap, |
774 | .vidioc_enum_fmt_vid_cap = zr364xx_vidioc_enum_fmt_vid_cap, | 767 | .vidioc_enum_fmt_vid_cap = zr364xx_vidioc_enum_fmt_vid_cap, |
775 | .vidioc_try_fmt_vid_cap = zr364xx_vidioc_try_fmt_vid_cap, | 768 | .vidioc_try_fmt_vid_cap = zr364xx_vidioc_try_fmt_vid_cap, |
@@ -785,6 +778,16 @@ static struct video_device zr364xx_template = { | |||
785 | .vidioc_s_ctrl = zr364xx_vidioc_s_ctrl, | 778 | .vidioc_s_ctrl = zr364xx_vidioc_s_ctrl, |
786 | }; | 779 | }; |
787 | 780 | ||
781 | static struct video_device zr364xx_template = { | ||
782 | .owner = THIS_MODULE, | ||
783 | .name = DRIVER_DESC, | ||
784 | .type = VID_TYPE_CAPTURE, | ||
785 | .fops = &zr364xx_fops, | ||
786 | .ioctl_ops = &zr364xx_ioctl_ops, | ||
787 | .release = video_device_release, | ||
788 | .minor = -1, | ||
789 | }; | ||
790 | |||
788 | 791 | ||
789 | 792 | ||
790 | /*******************/ | 793 | /*******************/ |