diff options
Diffstat (limited to 'drivers/media/video/em28xx/em28xx-video.c')
-rw-r--r-- | drivers/media/video/em28xx/em28xx-video.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/drivers/media/video/em28xx/em28xx-video.c b/drivers/media/video/em28xx/em28xx-video.c index 53527536481e..9cb7c64a88fa 100644 --- a/drivers/media/video/em28xx/em28xx-video.c +++ b/drivers/media/video/em28xx/em28xx-video.c | |||
@@ -1582,15 +1582,15 @@ static int radio_queryctrl(struct file *file, void *priv, | |||
1582 | * em28xx_v4l2_open() | 1582 | * em28xx_v4l2_open() |
1583 | * inits the device and starts isoc transfer | 1583 | * inits the device and starts isoc transfer |
1584 | */ | 1584 | */ |
1585 | static int em28xx_v4l2_open(struct inode *inode, struct file *filp) | 1585 | static int em28xx_v4l2_open(struct file *filp) |
1586 | { | 1586 | { |
1587 | int minor = iminor(inode); | 1587 | int minor = video_devdata(filp)->minor; |
1588 | int errCode = 0, radio; | 1588 | int errCode = 0, radio; |
1589 | struct em28xx *dev; | 1589 | struct em28xx *dev; |
1590 | enum v4l2_buf_type fh_type; | 1590 | enum v4l2_buf_type fh_type; |
1591 | struct em28xx_fh *fh; | 1591 | struct em28xx_fh *fh; |
1592 | 1592 | ||
1593 | dev = em28xx_get_device(inode, &fh_type, &radio); | 1593 | dev = em28xx_get_device(minor, &fh_type, &radio); |
1594 | 1594 | ||
1595 | if (NULL == dev) | 1595 | if (NULL == dev) |
1596 | return -ENODEV; | 1596 | return -ENODEV; |
@@ -1686,7 +1686,7 @@ void em28xx_release_analog_resources(struct em28xx *dev) | |||
1686 | * stops streaming and deallocates all resources allocated by the v4l2 | 1686 | * stops streaming and deallocates all resources allocated by the v4l2 |
1687 | * calls and ioctls | 1687 | * calls and ioctls |
1688 | */ | 1688 | */ |
1689 | static int em28xx_v4l2_close(struct inode *inode, struct file *filp) | 1689 | static int em28xx_v4l2_close(struct file *filp) |
1690 | { | 1690 | { |
1691 | struct em28xx_fh *fh = filp->private_data; | 1691 | struct em28xx_fh *fh = filp->private_data; |
1692 | struct em28xx *dev = fh->dev; | 1692 | struct em28xx *dev = fh->dev; |
@@ -1826,7 +1826,7 @@ static int em28xx_v4l2_mmap(struct file *filp, struct vm_area_struct *vma) | |||
1826 | return rc; | 1826 | return rc; |
1827 | } | 1827 | } |
1828 | 1828 | ||
1829 | static const struct file_operations em28xx_v4l_fops = { | 1829 | static const struct v4l2_file_operations em28xx_v4l_fops = { |
1830 | .owner = THIS_MODULE, | 1830 | .owner = THIS_MODULE, |
1831 | .open = em28xx_v4l2_open, | 1831 | .open = em28xx_v4l2_open, |
1832 | .release = em28xx_v4l2_close, | 1832 | .release = em28xx_v4l2_close, |
@@ -1834,8 +1834,6 @@ static const struct file_operations em28xx_v4l_fops = { | |||
1834 | .poll = em28xx_v4l2_poll, | 1834 | .poll = em28xx_v4l2_poll, |
1835 | .mmap = em28xx_v4l2_mmap, | 1835 | .mmap = em28xx_v4l2_mmap, |
1836 | .ioctl = video_ioctl2, | 1836 | .ioctl = video_ioctl2, |
1837 | .llseek = no_llseek, | ||
1838 | .compat_ioctl = v4l_compat_ioctl32, | ||
1839 | }; | 1837 | }; |
1840 | 1838 | ||
1841 | static const struct v4l2_ioctl_ops video_ioctl_ops = { | 1839 | static const struct v4l2_ioctl_ops video_ioctl_ops = { |
@@ -1890,13 +1888,11 @@ static const struct video_device em28xx_video_template = { | |||
1890 | .current_norm = V4L2_STD_PAL, | 1888 | .current_norm = V4L2_STD_PAL, |
1891 | }; | 1889 | }; |
1892 | 1890 | ||
1893 | static const struct file_operations radio_fops = { | 1891 | static const struct v4l2_file_operations radio_fops = { |
1894 | .owner = THIS_MODULE, | 1892 | .owner = THIS_MODULE, |
1895 | .open = em28xx_v4l2_open, | 1893 | .open = em28xx_v4l2_open, |
1896 | .release = em28xx_v4l2_close, | 1894 | .release = em28xx_v4l2_close, |
1897 | .ioctl = video_ioctl2, | 1895 | .ioctl = video_ioctl2, |
1898 | .compat_ioctl = v4l_compat_ioctl32, | ||
1899 | .llseek = no_llseek, | ||
1900 | }; | 1896 | }; |
1901 | 1897 | ||
1902 | static const struct v4l2_ioctl_ops radio_ioctl_ops = { | 1898 | static const struct v4l2_ioctl_ops radio_ioctl_ops = { |