aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/ov511.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/ov511.c')
-rw-r--r--drivers/media/video/ov511.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/video/ov511.c b/drivers/media/video/ov511.c
index 6590058e8ff0..eafb0c7736e6 100644
--- a/drivers/media/video/ov511.c
+++ b/drivers/media/video/ov511.c
@@ -4659,7 +4659,9 @@ static const struct file_operations ov511_fops = {
4659 .read = ov51x_v4l1_read, 4659 .read = ov51x_v4l1_read,
4660 .mmap = ov51x_v4l1_mmap, 4660 .mmap = ov51x_v4l1_mmap,
4661 .ioctl = ov51x_v4l1_ioctl, 4661 .ioctl = ov51x_v4l1_ioctl,
4662#ifdef CONFIG_COMPAT
4662 .compat_ioctl = v4l_compat_ioctl32, 4663 .compat_ioctl = v4l_compat_ioctl32,
4664#endif
4663 .llseek = no_llseek, 4665 .llseek = no_llseek,
4664}; 4666};
4665 4667
@@ -5831,7 +5833,7 @@ ov51x_probe(struct usb_interface *intf, const struct usb_device_id *id)
5831 goto error; 5833 goto error;
5832 5834
5833 memcpy(ov->vdev, &vdev_template, sizeof(*ov->vdev)); 5835 memcpy(ov->vdev, &vdev_template, sizeof(*ov->vdev));
5834 ov->vdev->dev = &dev->dev; 5836 ov->vdev->dev = &intf->dev;
5835 video_set_drvdata(ov->vdev, ov); 5837 video_set_drvdata(ov->vdev, ov);
5836 5838
5837 for (i = 0; i < OV511_MAX_UNIT_VIDEO; i++) { 5839 for (i = 0; i < OV511_MAX_UNIT_VIDEO; i++) {