diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2009-11-27 11:57:15 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-12-15 21:17:55 -0500 |
commit | 38c7c036036c6260606a2a833aaad3794ca22499 (patch) | |
tree | 8a41bf5b665a5ba328102e802fc4c7471270b428 /drivers/media/video/bt8xx/bttv-driver.c | |
parent | eac8ea536aded07004bde917f05a2329902c64b0 (diff) |
V4L/DVB (13550): v4l: Use the new video_device_node_name function
Fix all device drivers to use the new video_device_node_name function.
This also strips kernel log messages from the "/dev/" prefix, has the device
node location is a userspace policy decision unknown to the kernel.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/bt8xx/bttv-driver.c')
-rw-r--r-- | drivers/media/video/bt8xx/bttv-driver.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/media/video/bt8xx/bttv-driver.c b/drivers/media/video/bt8xx/bttv-driver.c index a6724019c66f..d57618319896 100644 --- a/drivers/media/video/bt8xx/bttv-driver.c +++ b/drivers/media/video/bt8xx/bttv-driver.c | |||
@@ -4244,8 +4244,8 @@ static int __devinit bttv_register_video(struct bttv *btv) | |||
4244 | if (video_register_device(btv->video_dev, VFL_TYPE_GRABBER, | 4244 | if (video_register_device(btv->video_dev, VFL_TYPE_GRABBER, |
4245 | video_nr[btv->c.nr]) < 0) | 4245 | video_nr[btv->c.nr]) < 0) |
4246 | goto err; | 4246 | goto err; |
4247 | printk(KERN_INFO "bttv%d: registered device video%d\n", | 4247 | printk(KERN_INFO "bttv%d: registered device %s\n", |
4248 | btv->c.nr, btv->video_dev->num); | 4248 | btv->c.nr, video_device_node_name(btv->video_dev)); |
4249 | if (device_create_file(&btv->video_dev->dev, | 4249 | if (device_create_file(&btv->video_dev->dev, |
4250 | &dev_attr_card)<0) { | 4250 | &dev_attr_card)<0) { |
4251 | printk(KERN_ERR "bttv%d: device_create_file 'card' " | 4251 | printk(KERN_ERR "bttv%d: device_create_file 'card' " |
@@ -4261,8 +4261,8 @@ static int __devinit bttv_register_video(struct bttv *btv) | |||
4261 | if (video_register_device(btv->vbi_dev, VFL_TYPE_VBI, | 4261 | if (video_register_device(btv->vbi_dev, VFL_TYPE_VBI, |
4262 | vbi_nr[btv->c.nr]) < 0) | 4262 | vbi_nr[btv->c.nr]) < 0) |
4263 | goto err; | 4263 | goto err; |
4264 | printk(KERN_INFO "bttv%d: registered device vbi%d\n", | 4264 | printk(KERN_INFO "bttv%d: registered device %s\n", |
4265 | btv->c.nr, btv->vbi_dev->num); | 4265 | btv->c.nr, video_device_node_name(btv->vbi_dev)); |
4266 | 4266 | ||
4267 | if (!btv->has_radio) | 4267 | if (!btv->has_radio) |
4268 | return 0; | 4268 | return 0; |
@@ -4273,8 +4273,8 @@ static int __devinit bttv_register_video(struct bttv *btv) | |||
4273 | if (video_register_device(btv->radio_dev, VFL_TYPE_RADIO, | 4273 | if (video_register_device(btv->radio_dev, VFL_TYPE_RADIO, |
4274 | radio_nr[btv->c.nr]) < 0) | 4274 | radio_nr[btv->c.nr]) < 0) |
4275 | goto err; | 4275 | goto err; |
4276 | printk(KERN_INFO "bttv%d: registered device radio%d\n", | 4276 | printk(KERN_INFO "bttv%d: registered device %s\n", |
4277 | btv->c.nr, btv->radio_dev->num); | 4277 | btv->c.nr, video_device_node_name(btv->radio_dev)); |
4278 | 4278 | ||
4279 | /* all done */ | 4279 | /* all done */ |
4280 | return 0; | 4280 | return 0; |