aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/em28xx/em28xx-video.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2009-11-27 11:57:15 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-12-15 21:17:55 -0500
commit38c7c036036c6260606a2a833aaad3794ca22499 (patch)
tree8a41bf5b665a5ba328102e802fc4c7471270b428 /drivers/media/video/em28xx/em28xx-video.c
parenteac8ea536aded07004bde917f05a2329902c64b0 (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/em28xx-video.c')
-rw-r--r--drivers/media/video/em28xx/em28xx-video.c20
1 files changed, 10 insertions, 10 deletions
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}