]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/media/video/bt8xx/bttv-driver.c
V4L/DVB (6602): V4L: Convert videobuf drivers to videobuf_stop
[linux-2.6-omap-h63xx.git] / drivers / media / video / bt8xx / bttv-driver.c
index a88b56e6ca05c3c2d990e2313c2bd79b857124f6..2182ef089ebf1bad2480c1a841e983a0eee9b71c 100644 (file)
@@ -3827,10 +3827,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);
        }