summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/saa7134/saa7134-empress.c
diff options
context:
space:
mode:
authorBrandon Philips <brandon@ifup.org>2007-11-13 15:11:26 -0800
committerBrandon Philips <brandon@ifup.org>2007-11-13 15:11:26 -0800
commite1d136377eb805eeda536a35af62204f0780acb2 (patch)
tree8c5f15514b1a9a8a6938f56f6c5372ba62222fe9 /linux/drivers/media/video/saa7134/saa7134-empress.c
parent09d082411ad4e8f87e4ee8431a920f1234ca2c8c (diff)
downloadmediapointer-dvb-s2-e1d136377eb805eeda536a35af62204f0780acb2.tar.gz
mediapointer-dvb-s2-e1d136377eb805eeda536a35af62204f0780acb2.tar.bz2
V4L: Convert videobuf drivers to videobuf_stop
Drivers were using cookie cutter code for stopping the read/stream. Use the new videobuf_stop function which is lock safe. Signed-off-by: Brandon Philips <bphilips@suse.de>
Diffstat (limited to 'linux/drivers/media/video/saa7134/saa7134-empress.c')
-rw-r--r--linux/drivers/media/video/saa7134/saa7134-empress.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/linux/drivers/media/video/saa7134/saa7134-empress.c b/linux/drivers/media/video/saa7134/saa7134-empress.c
index 9cf861614..5fe8f5320 100644
--- a/linux/drivers/media/video/saa7134/saa7134-empress.c
+++ b/linux/drivers/media/video/saa7134/saa7134-empress.c
@@ -119,11 +119,8 @@ static int ts_release(struct inode *inode, struct file *file)
{
struct saa7134_dev *dev = file->private_data;
- if (dev->empress_tsq.streaming)
- videobuf_streamoff(&dev->empress_tsq);
mutex_lock(&dev->empress_tsq.lock);
- if (dev->empress_tsq.reading)
- videobuf_read_stop(&dev->empress_tsq);
+ videobuf_stop(&dev->empress_tsq);
videobuf_mmap_free(&dev->empress_tsq);
dev->empress_users--;