diff options
Diffstat (limited to 'drivers/media/video/cx23885/cx23885-417.c')
-rw-r--r-- | drivers/media/video/cx23885/cx23885-417.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/media/video/cx23885/cx23885-417.c b/drivers/media/video/cx23885/cx23885-417.c index 798d24024353..d9888136255d 100644 --- a/drivers/media/video/cx23885/cx23885-417.c +++ b/drivers/media/video/cx23885/cx23885-417.c | |||
@@ -1573,9 +1573,9 @@ static int vidioc_queryctrl(struct file *file, void *priv, | |||
1573 | return cx23885_queryctrl(dev, c); | 1573 | return cx23885_queryctrl(dev, c); |
1574 | } | 1574 | } |
1575 | 1575 | ||
1576 | static int mpeg_open(struct inode *inode, struct file *file) | 1576 | static int mpeg_open(struct file *file) |
1577 | { | 1577 | { |
1578 | int minor = iminor(inode); | 1578 | int minor = video_devdata(file)->minor; |
1579 | struct cx23885_dev *h, *dev = NULL; | 1579 | struct cx23885_dev *h, *dev = NULL; |
1580 | struct list_head *list; | 1580 | struct list_head *list; |
1581 | struct cx23885_fh *fh; | 1581 | struct cx23885_fh *fh; |
@@ -1617,7 +1617,7 @@ static int mpeg_open(struct inode *inode, struct file *file) | |||
1617 | return 0; | 1617 | return 0; |
1618 | } | 1618 | } |
1619 | 1619 | ||
1620 | static int mpeg_release(struct inode *inode, struct file *file) | 1620 | static int mpeg_release(struct file *file) |
1621 | { | 1621 | { |
1622 | struct cx23885_fh *fh = file->private_data; | 1622 | struct cx23885_fh *fh = file->private_data; |
1623 | struct cx23885_dev *dev = fh->dev; | 1623 | struct cx23885_dev *dev = fh->dev; |
@@ -1694,15 +1694,13 @@ static int mpeg_mmap(struct file *file, struct vm_area_struct *vma) | |||
1694 | return videobuf_mmap_mapper(&fh->mpegq, vma); | 1694 | return videobuf_mmap_mapper(&fh->mpegq, vma); |
1695 | } | 1695 | } |
1696 | 1696 | ||
1697 | static struct file_operations mpeg_fops = { | 1697 | static struct v4l2_file_operations mpeg_fops = { |
1698 | .owner = THIS_MODULE, | 1698 | .owner = THIS_MODULE, |
1699 | .open = mpeg_open, | 1699 | .open = mpeg_open, |
1700 | .release = mpeg_release, | 1700 | .release = mpeg_release, |
1701 | .read = mpeg_read, | 1701 | .read = mpeg_read, |
1702 | .poll = mpeg_poll, | 1702 | .poll = mpeg_poll, |
1703 | .mmap = mpeg_mmap, | 1703 | .mmap = mpeg_mmap, |
1704 | .ioctl = video_ioctl2, | ||
1705 | .llseek = no_llseek, | ||
1706 | }; | 1704 | }; |
1707 | 1705 | ||
1708 | static const struct v4l2_ioctl_ops mpeg_ioctl_ops = { | 1706 | static const struct v4l2_ioctl_ops mpeg_ioctl_ops = { |