aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/gspca.c
diff options
context:
space:
mode:
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