diff options
Diffstat (limited to 'drivers/media/video/videodev.c')
-rw-r--r-- | drivers/media/video/videodev.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/media/video/videodev.c b/drivers/media/video/videodev.c index 4c3f92605a82..5c5281981231 100644 --- a/drivers/media/video/videodev.c +++ b/drivers/media/video/videodev.c | |||
@@ -760,7 +760,7 @@ static int __video_do_ioctl(struct inode *inode, struct file *file, | |||
760 | ret=vfd->vidioc_overlay(file, fh, *i); | 760 | ret=vfd->vidioc_overlay(file, fh, *i); |
761 | break; | 761 | break; |
762 | } | 762 | } |
763 | #ifdef HAVE_V4L1 | 763 | #ifdef CONFIG_V4L1_COMPAT |
764 | /* --- streaming capture ------------------------------------- */ | 764 | /* --- streaming capture ------------------------------------- */ |
765 | case VIDIOCGMBUF: | 765 | case VIDIOCGMBUF: |
766 | { | 766 | { |
@@ -1578,7 +1578,11 @@ int video_register_device(struct video_device *vfd, int type, int nr) | |||
1578 | __FUNCTION__); | 1578 | __FUNCTION__); |
1579 | return ret; | 1579 | return ret; |
1580 | } | 1580 | } |
1581 | video_device_create_file(vfd, &class_device_attr_name); | 1581 | ret = class_device_create_file(&vfd->class_dev, &class_device_attr_name); |
1582 | if (ret < 0) { | ||
1583 | printk(KERN_WARNING "%s error: %d\n", __FUNCTION__, ret); | ||
1584 | return ret; | ||
1585 | } | ||
1582 | 1586 | ||
1583 | #if 1 | 1587 | #if 1 |
1584 | /* needed until all drivers are fixed */ | 1588 | /* needed until all drivers are fixed */ |