diff options
Diffstat (limited to 'drivers/media/video/meye.c')
-rw-r--r-- | drivers/media/video/meye.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/media/video/meye.c b/drivers/media/video/meye.c index 6418f4a78f2a..b76e33d5c867 100644 --- a/drivers/media/video/meye.c +++ b/drivers/media/video/meye.c | |||
@@ -841,7 +841,7 @@ again: | |||
841 | /* video4linux integration */ | 841 | /* video4linux integration */ |
842 | /****************************************************************************/ | 842 | /****************************************************************************/ |
843 | 843 | ||
844 | static int meye_open(struct inode *inode, struct file *file) | 844 | static int meye_open(struct file *file) |
845 | { | 845 | { |
846 | int i; | 846 | int i; |
847 | 847 | ||
@@ -863,7 +863,7 @@ static int meye_open(struct inode *inode, struct file *file) | |||
863 | return 0; | 863 | return 0; |
864 | } | 864 | } |
865 | 865 | ||
866 | static int meye_release(struct inode *inode, struct file *file) | 866 | static int meye_release(struct file *file) |
867 | { | 867 | { |
868 | mchip_hic_stop(); | 868 | mchip_hic_stop(); |
869 | mchip_dma_free(); | 869 | mchip_dma_free(); |
@@ -1577,7 +1577,7 @@ static int vidioc_streamoff(struct file *file, void *fh, enum v4l2_buf_type i) | |||
1577 | return 0; | 1577 | return 0; |
1578 | } | 1578 | } |
1579 | 1579 | ||
1580 | static int vidioc_default(struct file *file, void *fh, int cmd, void *arg) | 1580 | static long vidioc_default(struct file *file, void *fh, int cmd, void *arg) |
1581 | { | 1581 | { |
1582 | switch (cmd) { | 1582 | switch (cmd) { |
1583 | case MEYEIOC_G_PARAMS: | 1583 | case MEYEIOC_G_PARAMS: |
@@ -1684,17 +1684,13 @@ static int meye_mmap(struct file *file, struct vm_area_struct *vma) | |||
1684 | return 0; | 1684 | return 0; |
1685 | } | 1685 | } |
1686 | 1686 | ||
1687 | static const struct file_operations meye_fops = { | 1687 | static const struct v4l2_file_operations meye_fops = { |
1688 | .owner = THIS_MODULE, | 1688 | .owner = THIS_MODULE, |
1689 | .open = meye_open, | 1689 | .open = meye_open, |
1690 | .release = meye_release, | 1690 | .release = meye_release, |
1691 | .mmap = meye_mmap, | 1691 | .mmap = meye_mmap, |
1692 | .ioctl = video_ioctl2, | 1692 | .ioctl = video_ioctl2, |
1693 | #ifdef CONFIG_COMPAT | ||
1694 | .compat_ioctl = v4l_compat_ioctl32, | ||
1695 | #endif | ||
1696 | .poll = meye_poll, | 1693 | .poll = meye_poll, |
1697 | .llseek = no_llseek, | ||
1698 | }; | 1694 | }; |
1699 | 1695 | ||
1700 | static const struct v4l2_ioctl_ops meye_ioctl_ops = { | 1696 | static const struct v4l2_ioctl_ops meye_ioctl_ops = { |