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/em28xx | |
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/em28xx')
-rw-r--r-- | drivers/media/video/em28xx/em28xx-cards.c | 4 | ||||
-rw-r--r-- | drivers/media/video/em28xx/em28xx-video.c | 20 |
2 files changed, 12 insertions, 12 deletions
diff --git a/drivers/media/video/em28xx/em28xx-cards.c b/drivers/media/video/em28xx/em28xx-cards.c index 82da205047be..4ace70946d32 100644 --- a/drivers/media/video/em28xx/em28xx-cards.c +++ b/drivers/media/video/em28xx/em28xx-cards.c | |||
@@ -2923,9 +2923,9 @@ static void em28xx_usb_disconnect(struct usb_interface *interface) | |||
2923 | 2923 | ||
2924 | if (dev->users) { | 2924 | if (dev->users) { |
2925 | em28xx_warn | 2925 | em28xx_warn |
2926 | ("device /dev/video%d is open! Deregistration and memory " | 2926 | ("device %s is open! Deregistration and memory " |
2927 | "deallocation are deferred on close.\n", | 2927 | "deallocation are deferred on close.\n", |
2928 | dev->vdev->num); | 2928 | video_device_node_name(dev->vdev)); |
2929 | 2929 | ||
2930 | dev->state |= DEV_MISCONFIGURED; | 2930 | dev->state |= DEV_MISCONFIGURED; |
2931 | em28xx_uninit_isoc(dev); | 2931 | em28xx_uninit_isoc(dev); |
diff --git a/drivers/media/video/em28xx/em28xx-video.c b/drivers/media/video/em28xx/em28xx-video.c index 7ad65370f274..5cc4fff04cdb 100644 --- a/drivers/media/video/em28xx/em28xx-video.c +++ b/drivers/media/video/em28xx/em28xx-video.c | |||
@@ -2167,8 +2167,8 @@ void em28xx_release_analog_resources(struct em28xx *dev) | |||
2167 | dev->radio_dev = NULL; | 2167 | dev->radio_dev = NULL; |
2168 | } | 2168 | } |
2169 | if (dev->vbi_dev) { | 2169 | if (dev->vbi_dev) { |
2170 | em28xx_info("V4L2 device /dev/vbi%d deregistered\n", | 2170 | em28xx_info("V4L2 device %s deregistered\n", |
2171 | dev->vbi_dev->num); | 2171 | video_device_node_name(dev->vbi_dev)); |
2172 | if (-1 != dev->vbi_dev->minor) | 2172 | if (-1 != dev->vbi_dev->minor) |
2173 | video_unregister_device(dev->vbi_dev); | 2173 | video_unregister_device(dev->vbi_dev); |
2174 | else | 2174 | else |
@@ -2176,8 +2176,8 @@ void em28xx_release_analog_resources(struct em28xx *dev) | |||
2176 | dev->vbi_dev = NULL; | 2176 | dev->vbi_dev = NULL; |
2177 | } | 2177 | } |
2178 | if (dev->vdev) { | 2178 | if (dev->vdev) { |
2179 | em28xx_info("V4L2 device /dev/video%d deregistered\n", | 2179 | em28xx_info("V4L2 device %s deregistered\n", |
2180 | dev->vdev->num); | 2180 | video_device_node_name(dev->vdev)); |
2181 | if (-1 != dev->vdev->minor) | 2181 | if (-1 != dev->vdev->minor) |
2182 | video_unregister_device(dev->vdev); | 2182 | video_unregister_device(dev->vdev); |
2183 | else | 2183 | else |
@@ -2540,16 +2540,16 @@ int em28xx_register_analog_devices(struct em28xx *dev) | |||
2540 | em28xx_errdev("can't register radio device\n"); | 2540 | em28xx_errdev("can't register radio device\n"); |
2541 | return ret; | 2541 | return ret; |
2542 | } | 2542 | } |
2543 | em28xx_info("Registered radio device as /dev/radio%d\n", | 2543 | em28xx_info("Registered radio device as %s\n", |
2544 | dev->radio_dev->num); | 2544 | video_device_node_name(dev->radio_dev)); |
2545 | } | 2545 | } |
2546 | 2546 | ||
2547 | em28xx_info("V4L2 video device registered as /dev/video%d\n", | 2547 | em28xx_info("V4L2 video device registered as %s\n", |
2548 | dev->vdev->num); | 2548 | video_device_node_name(dev->vdev)); |
2549 | 2549 | ||
2550 | if (dev->vbi_dev) | 2550 | if (dev->vbi_dev) |
2551 | em28xx_info("V4L2 VBI device registered as /dev/vbi%d\n", | 2551 | em28xx_info("V4L2 VBI device registered as %s\n", |
2552 | dev->vbi_dev->num); | 2552 | video_device_node_name(dev->vbi_dev)); |
2553 | 2553 | ||
2554 | return 0; | 2554 | return 0; |
2555 | } | 2555 | } |