diff options
Diffstat (limited to 'drivers/media/video/zoran_driver.c')
-rw-r--r-- | drivers/media/video/zoran_driver.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/media/video/zoran_driver.c b/drivers/media/video/zoran_driver.c index c0675921fe20..ec6f59674b10 100644 --- a/drivers/media/video/zoran_driver.c +++ b/drivers/media/video/zoran_driver.c | |||
@@ -71,6 +71,7 @@ | |||
71 | 71 | ||
72 | #include <linux/videodev.h> | 72 | #include <linux/videodev.h> |
73 | #include <media/v4l2-common.h> | 73 | #include <media/v4l2-common.h> |
74 | #include <media/v4l2-ioctl.h> | ||
74 | #include "videocodec.h" | 75 | #include "videocodec.h" |
75 | 76 | ||
76 | #include <asm/byteorder.h> | 77 | #include <asm/byteorder.h> |
@@ -1212,8 +1213,8 @@ zoran_open (struct inode *inode, | |||
1212 | 1213 | ||
1213 | /* find the device */ | 1214 | /* find the device */ |
1214 | for (i = 0; i < zoran_num; i++) { | 1215 | for (i = 0; i < zoran_num; i++) { |
1215 | if (zoran[i].video_dev->minor == minor) { | 1216 | if (zoran[i]->video_dev->minor == minor) { |
1216 | zr = &zoran[i]; | 1217 | zr = zoran[i]; |
1217 | break; | 1218 | break; |
1218 | } | 1219 | } |
1219 | } | 1220 | } |
@@ -4643,8 +4644,6 @@ static const struct file_operations zoran_fops = { | |||
4643 | 4644 | ||
4644 | struct video_device zoran_template __devinitdata = { | 4645 | struct video_device zoran_template __devinitdata = { |
4645 | .name = ZORAN_NAME, | 4646 | .name = ZORAN_NAME, |
4646 | .type = ZORAN_VID_TYPE, | ||
4647 | .type2 = ZORAN_V4L2_VID_FLAGS, | ||
4648 | .fops = &zoran_fops, | 4647 | .fops = &zoran_fops, |
4649 | .release = &zoran_vdev_release, | 4648 | .release = &zoran_vdev_release, |
4650 | .minor = -1 | 4649 | .minor = -1 |