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/common/saa7146_fops.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/common/saa7146_fops.c')
-rw-r--r-- | drivers/media/common/saa7146_fops.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/media/common/saa7146_fops.c b/drivers/media/common/saa7146_fops.c index 620f655fa9c5..f279a6440415 100644 --- a/drivers/media/common/saa7146_fops.c +++ b/drivers/media/common/saa7146_fops.c | |||
@@ -543,15 +543,13 @@ int saa7146_register_device(struct video_device **vid, struct saa7146_dev* dev, | |||
543 | return err; | 543 | return err; |
544 | } | 544 | } |
545 | 545 | ||
546 | if( VFL_TYPE_GRABBER == type ) { | 546 | if (VFL_TYPE_GRABBER == type) |
547 | vv->video_minor = vfd->minor; | 547 | vv->video_minor = vfd->minor; |
548 | INFO(("%s: registered device video%d [v4l2]\n", | 548 | else |
549 | dev->name, vfd->num)); | ||
550 | } else { | ||
551 | vv->vbi_minor = vfd->minor; | 549 | vv->vbi_minor = vfd->minor; |
552 | INFO(("%s: registered device vbi%d [v4l2]\n", | 550 | |
553 | dev->name, vfd->num)); | 551 | INFO(("%s: registered device %s [v4l2]\n", |
554 | } | 552 | dev->name, video_device_node_name(vfd))); |
555 | 553 | ||
556 | *vid = vfd; | 554 | *vid = vfd; |
557 | return 0; | 555 | return 0; |