Commit 47ed3bc6 authored by Mike Isely's avatar Mike Isely Committed by Mauro Carvalho Chehab

V4L/DVB (4273): Always log pvrusb2 device register / unregister events

Previously the pvrusb2 driver was conditionalizing printing of the
device register / unregister messages against a debug mask.  This sort
of information should always appear, thus this patch.
Signed-off-by: default avatarMike Isely <isely@pobox.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 3407e387
...@@ -701,8 +701,7 @@ static int pvr2_v4l2_do_ioctl(struct inode *inode, struct file *file, ...@@ -701,8 +701,7 @@ static int pvr2_v4l2_do_ioctl(struct inode *inode, struct file *file,
static void pvr2_v4l2_dev_destroy(struct pvr2_v4l2_dev *dip) static void pvr2_v4l2_dev_destroy(struct pvr2_v4l2_dev *dip)
{ {
pvr2_trace(PVR2_TRACE_INIT, printk(KERN_INFO "pvrusb2: unregistering device video%d [%s]\n",
"unregistering device video%d [%s]",
dip->vdev->minor,pvr2_config_get_name(dip->config)); dip->vdev->minor,pvr2_config_get_name(dip->config));
if (dip->ctxt_idx >= 0) { if (dip->ctxt_idx >= 0) {
mutex_lock(&device_lock); mutex_lock(&device_lock);
...@@ -1078,8 +1077,7 @@ static void pvr2_v4l2_dev_init(struct pvr2_v4l2_dev *dip, ...@@ -1078,8 +1077,7 @@ static void pvr2_v4l2_dev_init(struct pvr2_v4l2_dev *dip,
(video_register_device(dip->vdev, v4l_type, -1) < 0)) { (video_register_device(dip->vdev, v4l_type, -1) < 0)) {
err("Failed to register pvrusb2 v4l video device"); err("Failed to register pvrusb2 v4l video device");
} else { } else {
pvr2_trace(PVR2_TRACE_INIT, printk(KERN_INFO "pvrusb2: registered device video%d [%s]\n",
"registered device video%d [%s]",
dip->vdev->minor,pvr2_config_get_name(dip->config)); dip->vdev->minor,pvr2_config_get_name(dip->config));
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment