summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/bt8xx
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/bt8xx
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/bt8xx')
-rw-r--r--linux/drivers/media/video/bt8xx/bttv-driver.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/linux/drivers/media/video/bt8xx/bttv-driver.c b/linux/drivers/media/video/bt8xx/bttv-driver.c
index 823c917d4..06695c09c 100644
--- a/linux/drivers/media/video/bt8xx/bttv-driver.c
+++ b/linux/drivers/media/video/bt8xx/bttv-driver.c
@@ -3251,10 +3251,7 @@ static int bttv_release(struct inode *inode, struct file *file)
/* stop vbi capture */
if (check_btres(fh, RESOURCE_VBI)) {
- if (fh->vbi.streaming)
- videobuf_streamoff(&fh->vbi);
- if (fh->vbi.reading)
- videobuf_read_stop(&fh->vbi);
+ videobuf_stop(&fh->vbi);
free_btres(btv,fh,RESOURCE_VBI);
}