diff options
Diffstat (limited to 'drivers/media/video/usbvideo')
-rw-r--r-- | drivers/media/video/usbvideo/usbvideo.c | 4 | ||||
-rw-r--r-- | drivers/media/video/usbvideo/usbvideo.h | 1 | ||||
-rw-r--r-- | drivers/media/video/usbvideo/vicam.c | 3 |
3 files changed, 3 insertions, 5 deletions
diff --git a/drivers/media/video/usbvideo/usbvideo.c b/drivers/media/video/usbvideo/usbvideo.c index 4128ee20b64..bf1bc2f69b0 100644 --- a/drivers/media/video/usbvideo/usbvideo.c +++ b/drivers/media/video/usbvideo/usbvideo.c | |||
@@ -952,8 +952,6 @@ static const struct file_operations usbvideo_fops = { | |||
952 | .llseek = no_llseek, | 952 | .llseek = no_llseek, |
953 | }; | 953 | }; |
954 | static const struct video_device usbvideo_template = { | 954 | static const struct video_device usbvideo_template = { |
955 | .owner = THIS_MODULE, | ||
956 | .type = VID_TYPE_CAPTURE, | ||
957 | .fops = &usbvideo_fops, | 955 | .fops = &usbvideo_fops, |
958 | }; | 956 | }; |
959 | 957 | ||
@@ -1040,7 +1038,7 @@ int usbvideo_RegisterVideoDevice(struct uvd *uvd) | |||
1040 | err("%s: uvd->dev == NULL", __func__); | 1038 | err("%s: uvd->dev == NULL", __func__); |
1041 | return -EINVAL; | 1039 | return -EINVAL; |
1042 | } | 1040 | } |
1043 | uvd->vdev.dev = &uvd->dev->dev; | 1041 | uvd->vdev.parent = &uvd->dev->dev; |
1044 | if (video_register_device(&uvd->vdev, VFL_TYPE_GRABBER, video_nr) == -1) { | 1042 | if (video_register_device(&uvd->vdev, VFL_TYPE_GRABBER, video_nr) == -1) { |
1045 | err("%s: video_register_device failed", __func__); | 1043 | err("%s: video_register_device failed", __func__); |
1046 | return -EPIPE; | 1044 | return -EPIPE; |
diff --git a/drivers/media/video/usbvideo/usbvideo.h b/drivers/media/video/usbvideo/usbvideo.h index 051775d4c72..c66985beb8c 100644 --- a/drivers/media/video/usbvideo/usbvideo.h +++ b/drivers/media/video/usbvideo/usbvideo.h | |||
@@ -18,6 +18,7 @@ | |||
18 | 18 | ||
19 | #include <linux/videodev.h> | 19 | #include <linux/videodev.h> |
20 | #include <media/v4l2-common.h> | 20 | #include <media/v4l2-common.h> |
21 | #include <media/v4l2-ioctl.h> | ||
21 | #include <linux/usb.h> | 22 | #include <linux/usb.h> |
22 | #include <linux/mutex.h> | 23 | #include <linux/mutex.h> |
23 | 24 | ||
diff --git a/drivers/media/video/usbvideo/vicam.c b/drivers/media/video/usbvideo/vicam.c index 40d053e0d5b..b7792451a29 100644 --- a/drivers/media/video/usbvideo/vicam.c +++ b/drivers/media/video/usbvideo/vicam.c | |||
@@ -41,6 +41,7 @@ | |||
41 | #include <linux/videodev.h> | 41 | #include <linux/videodev.h> |
42 | #include <linux/usb.h> | 42 | #include <linux/usb.h> |
43 | #include <linux/vmalloc.h> | 43 | #include <linux/vmalloc.h> |
44 | #include <linux/mm.h> | ||
44 | #include <linux/slab.h> | 45 | #include <linux/slab.h> |
45 | #include <linux/mutex.h> | 46 | #include <linux/mutex.h> |
46 | #include <linux/firmware.h> | 47 | #include <linux/firmware.h> |
@@ -791,9 +792,7 @@ static const struct file_operations vicam_fops = { | |||
791 | }; | 792 | }; |
792 | 793 | ||
793 | static struct video_device vicam_template = { | 794 | static struct video_device vicam_template = { |
794 | .owner = THIS_MODULE, | ||
795 | .name = "ViCam-based USB Camera", | 795 | .name = "ViCam-based USB Camera", |
796 | .type = VID_TYPE_CAPTURE, | ||
797 | .fops = &vicam_fops, | 796 | .fops = &vicam_fops, |
798 | .minor = -1, | 797 | .minor = -1, |
799 | }; | 798 | }; |