Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 199923
b: refs/heads/master
c: d72baad
h: refs/heads/master
i:
  199921: 85c44c2
  199919: f10420e
v: v3
  • Loading branch information
Mike Isely authored and Mauro Carvalho Chehab committed Jun 1, 2010
1 parent 6b696a9 commit ec60e2a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8fd0444817e557568d8bddd77828d9ae0d606e04
refs/heads/master: d72baad3f0e59041d68db7524537046e3a4121a2
15 changes: 12 additions & 3 deletions trunk/drivers/media/video/pvrusb2/pvrusb2-v4l2.c
Original file line number Diff line number Diff line change
Expand Up @@ -883,6 +883,17 @@ static void pvr2_v4l2_dev_destroy(struct pvr2_v4l2_dev *dip)
{
struct pvr2_hdw *hdw = dip->v4lp->channel.mc_head->hdw;
enum pvr2_config cfg = dip->config;
char msg[80];
unsigned int mcnt;

/* Construct the unregistration message *before* we actually
perform the unregistration step. By doing it this way we don't
have to worry about potentially touching deleted resources. */
mcnt = scnprintf(msg, sizeof(msg) - 1,
"pvrusb2: unregistered device %s [%s]",
video_device_node_name(&dip->devbase),
pvr2_config_get_name(cfg));
msg[mcnt] = 0;

pvr2_hdw_v4l_store_minor_number(hdw,dip->minor_type,-1);

Expand All @@ -894,9 +905,7 @@ static void pvr2_v4l2_dev_destroy(struct pvr2_v4l2_dev *dip)
are gone. */
video_unregister_device(&dip->devbase);

printk(KERN_INFO "pvrusb2: unregistered device %s [%s]\n",
video_device_node_name(&dip->devbase),
pvr2_config_get_name(cfg));
printk(KERN_INFO "%s\n", msg);

}

Expand Down

0 comments on commit ec60e2a

Please sign in to comment.