static int em2820_v4l2_close(struct inode *inode, struct file *file) 
static int em2820_v4l2_close(struct inode *inode, struct file *filp) 
static int em2820_v4l2_close(struct inode *inode, struct file *file){	int errCode;	int minor = iminor(inode);	struct em2820 *h,*dev = NULL;	struct list_head *list;	list_for_each(list,&em2820_devlist) {		h = list_entry(list, struct em2820, devlist);		if (h->vdev->minor == minor) {			dev  = h;		}	}	em2820_videodbg("users=%d", dev->users);	down(&dev->lock);	em2820_uninit_isoc(dev);	em2820_release_buffers(dev);	/* the device is already disconnect, free the remaining resources */	if (dev->state & DEV_DISCONNECTED) {		em2820_release_resources(dev);		up(&dev->lock);		kfree(dev);		return 0;	}	/* set alternate 0 */	dev->alt = 0;	em2820_videodbg("setting alternate 0");	errCode = usb_set_interface(dev->udev, 0, 0);	if (errCode < 0) {		em2820_errdev ("cannot change alternate number to 0 (error=%i)\n",		     errCode);	}	dev->users--;	wake_up_interruptible_nr(&dev->open, 1);	up(&dev->lock);	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/86bb4a215d152111f20daeb2a530f064afee8542/em28xx-video.c/clean/drivers/media/video/em28xx/em28xx-video.c