aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/gspca.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/gspca/gspca.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/gspca/gspca.c')
-rw-r--r--drivers/media/video/gspca/gspca.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/media/video/gspca/gspca.c b/drivers/media/video/gspca/gspca.c
index 4076f8e5a6fc..6af4f233bf52 100644
--- a/drivers/media/video/gspca/gspca.c
+++ b/drivers/media/video/gspca/gspca.c
@@ -987,7 +987,8 @@ static void gspca_release(struct video_device *vfd)
987{ 987{
988 struct gspca_dev *gspca_dev = container_of(vfd, struct gspca_dev, vdev); 988 struct gspca_dev *gspca_dev = container_of(vfd, struct gspca_dev, vdev);
989 989
990 PDEBUG(D_PROBE, "/dev/video%d released", gspca_dev->vdev.num); 990 PDEBUG(D_PROBE, "%s released",
991 video_device_node_name(&gspca_dev->vdev));
991 992
992 kfree(gspca_dev->usb_buf); 993 kfree(gspca_dev->usb_buf);
993 kfree(gspca_dev); 994 kfree(gspca_dev);
@@ -2073,7 +2074,7 @@ int gspca_dev_probe(struct usb_interface *intf,
2073 } 2074 }
2074 2075
2075 usb_set_intfdata(intf, gspca_dev); 2076 usb_set_intfdata(intf, gspca_dev);
2076 PDEBUG(D_PROBE, "/dev/video%d created", gspca_dev->vdev.num); 2077 PDEBUG(D_PROBE, "%s created", video_device_node_name(&gspca_dev->vdev));
2077 return 0; 2078 return 0;
2078out: 2079out:
2079 kfree(gspca_dev->usb_buf); 2080 kfree(gspca_dev->usb_buf);
@@ -2092,7 +2093,8 @@ void gspca_disconnect(struct usb_interface *intf)
2092{ 2093{
2093 struct gspca_dev *gspca_dev = usb_get_intfdata(intf); 2094 struct gspca_dev *gspca_dev = usb_get_intfdata(intf);
2094 2095
2095 PDEBUG(D_PROBE, "/dev/video%d disconnect", gspca_dev->vdev.num); 2096 PDEBUG(D_PROBE, "%s disconnect",
2097 video_device_node_name(&gspca_dev->vdev));
2096 mutex_lock(&gspca_dev->usb_lock); 2098 mutex_lock(&gspca_dev->usb_lock);
2097 gspca_dev->present = 0; 2099 gspca_dev->present = 0;
2098 2100