diff options
Diffstat (limited to 'drivers/media/video')
-rw-r--r-- | drivers/media/video/bt8xx/bttv-driver.c | 8 | ||||
-rw-r--r-- | drivers/media/video/videodev.c | 7 |
2 files changed, 10 insertions, 5 deletions
diff --git a/drivers/media/video/bt8xx/bttv-driver.c b/drivers/media/video/bt8xx/bttv-driver.c index 6db5e4e73397..20dff7c316eb 100644 --- a/drivers/media/video/bt8xx/bttv-driver.c +++ b/drivers/media/video/bt8xx/bttv-driver.c | |||
@@ -3923,8 +3923,12 @@ static int __devinit bttv_register_video(struct bttv *btv) | |||
3923 | goto err; | 3923 | goto err; |
3924 | printk(KERN_INFO "bttv%d: registered device video%d\n", | 3924 | printk(KERN_INFO "bttv%d: registered device video%d\n", |
3925 | btv->c.nr,btv->video_dev->minor & 0x1f); | 3925 | btv->c.nr,btv->video_dev->minor & 0x1f); |
3926 | 3926 | if (class_device_create_file(&btv->video_dev->class_dev, | |
3927 | video_device_create_file(btv->video_dev, &class_device_attr_card); | 3927 | &class_device_attr_card)<0) { |
3928 | printk(KERN_ERR "bttv%d: class_device_create_file 'card' " | ||
3929 | "failed\n", btv->c.nr); | ||
3930 | goto err; | ||
3931 | } | ||
3928 | 3932 | ||
3929 | /* vbi */ | 3933 | /* vbi */ |
3930 | btv->vbi_dev = vdev_init(btv, &bttv_vbi_template, "vbi"); | 3934 | btv->vbi_dev = vdev_init(btv, &bttv_vbi_template, "vbi"); |
diff --git a/drivers/media/video/videodev.c b/drivers/media/video/videodev.c index caa4f736468a..46848e2ae476 100644 --- a/drivers/media/video/videodev.c +++ b/drivers/media/video/videodev.c | |||
@@ -1578,12 +1578,13 @@ int video_register_device(struct video_device *vfd, int type, int nr) | |||
1578 | if (ret) { | 1578 | if (ret) { |
1579 | printk(KERN_ERR "%s: class_device_register failed\n", | 1579 | printk(KERN_ERR "%s: class_device_register failed\n", |
1580 | __FUNCTION__); | 1580 | __FUNCTION__); |
1581 | return ret; | 1581 | goto fail_minor; |
1582 | } | 1582 | } |
1583 | ret = class_device_create_file(&vfd->class_dev, &class_device_attr_name); | 1583 | ret = class_device_create_file(&vfd->class_dev, &class_device_attr_name); |
1584 | if (ret < 0) { | 1584 | if (ret < 0) { |
1585 | printk(KERN_WARNING "%s error: %d\n", __FUNCTION__, ret); | 1585 | printk(KERN_ERR "%s: class_device_create_file 'name' failed\n", |
1586 | return ret; | 1586 | __FUNCTION__); |
1587 | goto fail_classdev; | ||
1587 | } | 1588 | } |
1588 | 1589 | ||
1589 | #if 1 | 1590 | #if 1 |