kernels/linux-2.4.0/drivers/media/video/videodev.c
/**
 *	video_unregister_device - unregister a video4linux device
 *	@vfd: the device to unregister
 *
 *	This unregisters the passed device and deassigns the minor
 *	number. Future open calls will be met with errors.
 */
unregister a video4linux device
@vfd: the device to unregister

This unregisters the passed device and deassigns the minor
number. Future open calls will be met with errors.
unregister a video4linux device @vfd : the device to unregister This unregisters the passed device and deassigns the minor number . Future open calls will be met with errors .
void video_unregister_device(struct video_device *vfd)
{
	if(video_device[vfd->minor]!=vfd)
		panic("vfd: bad unregister");
#if defined(CONFIG_PROC_FS) && defined(CONFIG_VIDEO_PROC_FS)
	videodev_proc_destroy_dev (vfd);
#endif
	devfs_unregister (vfd->devfs_handle);
	video_device[vfd->minor]=NULL;
	MOD_DEC_USE_COUNT;
}
void video_unregister_device ( struct video_device * vfd ) { if ( video_device [ vfd -> minor ] != vfd ) panic ( " " ) ; #if defined ( CONFIG_PROC_FS ) && defined ( CONFIG_VIDEO_PROC_FS ) videodev_proc_destroy_dev ( vfd ) ; #endif devfs_unregister ( vfd -> devfs_handle ) ; video_device [ vfd -> minor ] = NULL ; MOD_DEC_USE_COUNT ; }
video_unregister_device - unregister a video4linux device
      @vfd: the device to unregister
video_unregister_device - unregister a video4linux device @vfd : the device to unregister