diff options
Diffstat (limited to 'v4l_experimental/pvrusb2/pvrusb2-v4l2.c')
-rw-r--r-- | v4l_experimental/pvrusb2/pvrusb2-v4l2.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/v4l_experimental/pvrusb2/pvrusb2-v4l2.c b/v4l_experimental/pvrusb2/pvrusb2-v4l2.c index 71590e400..6d0f8621e 100644 --- a/v4l_experimental/pvrusb2/pvrusb2-v4l2.c +++ b/v4l_experimental/pvrusb2/pvrusb2-v4l2.c @@ -1,6 +1,6 @@ /* * - * $Id: pvrusb2-v4l2.c,v 1.4 2005/12/02 13:59:00 mcisely Exp $ + * $Id: pvrusb2-v4l2.c,v 1.5 2006/01/01 08:26:03 mcisely Exp $ * * Copyright (C) 2005 Mike Isely <isely@pobox.com> * Copyright (C) 2004 Aurelien Alleaume <slts@free.fr> @@ -941,6 +941,7 @@ static void pvr2_v4l2_dev_destroy(struct pvr2_v4l2_dev *dip) static void pvr2_v4l2_destroy_no_lock(struct pvr2_v4l2 *vp) { + pvr2_hdw_v4l_store_minor_number(vp->channel.mc_head->hdw,-1); pvr2_v4l2_dev_destroy(&vp->video_dev); pvr2_trace(PVR2_TRACE_STRUCT,"Destroying pvr2_v4l2 id=%p",vp); @@ -992,8 +993,6 @@ int pvr2_v4l2_release(struct inode *inode, struct file *file) v4l2_prio_close(&vp->prio, &fhp->prio); file->private_data = NULL; - pvr2_hdw_v4l_store_minor_number(fhp->channel.mc_head->hdw,-1); - pvr2_context_enter(mp); do { if (fhp->vnext) { fhp->vnext->vprev = fhp->vprev; |