diff options
Diffstat (limited to 'drivers/media/video/cafe_ccic.c')
-rw-r--r-- | drivers/media/video/cafe_ccic.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/media/video/cafe_ccic.c b/drivers/media/video/cafe_ccic.c index 1740b9ebdcef..476171cf5001 100644 --- a/drivers/media/video/cafe_ccic.c +++ b/drivers/media/video/cafe_ccic.c | |||
@@ -1472,11 +1472,11 @@ static int cafe_v4l_mmap(struct file *filp, struct vm_area_struct *vma) | |||
1472 | 1472 | ||
1473 | 1473 | ||
1474 | 1474 | ||
1475 | static int cafe_v4l_open(struct inode *inode, struct file *filp) | 1475 | static int cafe_v4l_open(struct file *filp) |
1476 | { | 1476 | { |
1477 | struct cafe_camera *cam; | 1477 | struct cafe_camera *cam; |
1478 | 1478 | ||
1479 | cam = cafe_find_dev(iminor(inode)); | 1479 | cam = cafe_find_dev(video_devdata(filp)->minor); |
1480 | if (cam == NULL) | 1480 | if (cam == NULL) |
1481 | return -ENODEV; | 1481 | return -ENODEV; |
1482 | filp->private_data = cam; | 1482 | filp->private_data = cam; |
@@ -1494,7 +1494,7 @@ static int cafe_v4l_open(struct inode *inode, struct file *filp) | |||
1494 | } | 1494 | } |
1495 | 1495 | ||
1496 | 1496 | ||
1497 | static int cafe_v4l_release(struct inode *inode, struct file *filp) | 1497 | static int cafe_v4l_release(struct file *filp) |
1498 | { | 1498 | { |
1499 | struct cafe_camera *cam = filp->private_data; | 1499 | struct cafe_camera *cam = filp->private_data; |
1500 | 1500 | ||
@@ -1759,7 +1759,7 @@ static void cafe_v4l_dev_release(struct video_device *vd) | |||
1759 | * clone it for specific real devices. | 1759 | * clone it for specific real devices. |
1760 | */ | 1760 | */ |
1761 | 1761 | ||
1762 | static const struct file_operations cafe_v4l_fops = { | 1762 | static const struct v4l2_file_operations cafe_v4l_fops = { |
1763 | .owner = THIS_MODULE, | 1763 | .owner = THIS_MODULE, |
1764 | .open = cafe_v4l_open, | 1764 | .open = cafe_v4l_open, |
1765 | .release = cafe_v4l_release, | 1765 | .release = cafe_v4l_release, |
@@ -1767,7 +1767,6 @@ static const struct file_operations cafe_v4l_fops = { | |||
1767 | .poll = cafe_v4l_poll, | 1767 | .poll = cafe_v4l_poll, |
1768 | .mmap = cafe_v4l_mmap, | 1768 | .mmap = cafe_v4l_mmap, |
1769 | .ioctl = video_ioctl2, | 1769 | .ioctl = video_ioctl2, |
1770 | .llseek = no_llseek, | ||
1771 | }; | 1770 | }; |
1772 | 1771 | ||
1773 | static const struct v4l2_ioctl_ops cafe_v4l_ioctl_ops = { | 1772 | static const struct v4l2_ioctl_ops cafe_v4l_ioctl_ops = { |