diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-08-23 10:34:55 +0200 |
---|---|---|
committer | Hans Verkuil <hverkuil@xs4all.nl> | 2008-08-23 10:34:55 +0200 |
commit | b43528c7ba3da6f260cd3de6ca21c991a012fa6e (patch) | |
tree | 2055db8dc1d1ea184f1ccb2bee8d4ef664084556 /linux/drivers/media/video/v4l2-dev.c | |
parent | ebc50a51f87d69d522b94d64ec8d7da4df5bbb93 (diff) | |
download | mediapointer-dvb-s2-b43528c7ba3da6f260cd3de6ca21c991a012fa6e.tar.gz mediapointer-dvb-s2-b43528c7ba3da6f260cd3de6ca21c991a012fa6e.tar.bz2 |
v4l2-dev: remove obsolete video_exclusive_open/release
From: Hans Verkuil <hverkuil@xs4all.nl>
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/drivers/media/video/v4l2-dev.c')
-rw-r--r-- | linux/drivers/media/video/v4l2-dev.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/linux/drivers/media/video/v4l2-dev.c b/linux/drivers/media/video/v4l2-dev.c index 594f2477f..e2cecec6e 100644 --- a/linux/drivers/media/video/v4l2-dev.c +++ b/linux/drivers/media/video/v4l2-dev.c @@ -179,34 +179,6 @@ static int video_open(struct inode *inode, struct file *file) return err; } -/* - * open/release helper functions -- handle exclusive opens - * Should be removed soon - */ -int video_exclusive_open(struct inode *inode, struct file *file) -{ - struct video_device *vfl = video_devdata(file); - int retval = 0; - - mutex_lock(&vfl->lock); - if (vfl->users) - retval = -EBUSY; - else - vfl->users++; - mutex_unlock(&vfl->lock); - return retval; -} -EXPORT_SYMBOL(video_exclusive_open); - -int video_exclusive_release(struct inode *inode, struct file *file) -{ - struct video_device *vfl = video_devdata(file); - - vfl->users--; - return 0; -} -EXPORT_SYMBOL(video_exclusive_release); - /** * get_index - assign stream number based on parent device * @vdev: video_device to assign index number to, vdev->dev should be assigned @@ -352,8 +324,6 @@ int video_register_device_index(struct video_device *vfd, int type, int nr, goto fail_minor; } - mutex_init(&vfd->lock); - /* sysfs class */ memset(&vfd->dev, 0x00, sizeof(vfd->dev)); vfd->dev.class = &video_class; |