diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-08-27 07:55:38 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-05-18 00:39:39 -0300 |
commit | dc6a02aa35cc3c1dd84e06fa4ff300ae50bc5a70 (patch) | |
tree | f5b157423421dc82b997432bbabccb12fa4c90ca /drivers/staging/tm6000/tm6000-video.c | |
parent | 5f796752e80b76a81a066084c87dd86bf307dada (diff) | |
download | op-kernel-dev-dc6a02aa35cc3c1dd84e06fa4ff300ae50bc5a70.zip op-kernel-dev-dc6a02aa35cc3c1dd84e06fa4ff300ae50bc5a70.tar.gz |
V4L/DVB (12791): tm6000: fix poll() method
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/staging/tm6000/tm6000-video.c')
-rw-r--r-- | drivers/staging/tm6000/tm6000-video.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/staging/tm6000/tm6000-video.c b/drivers/staging/tm6000/tm6000-video.c index 9557dfe..f96c7a7 100644 --- a/drivers/staging/tm6000/tm6000-video.c +++ b/drivers/staging/tm6000/tm6000-video.c @@ -1449,9 +1449,8 @@ tm6000_poll(struct file *file, struct poll_table_struct *wait) buf = list_entry(fh->vb_vidq.stream.next,struct tm6000_buffer,vb.stream); } else { /* read() capture */ - buf = (struct tm6000_buffer*)fh->vb_vidq.read_buf; - if (NULL == buf) - return POLLERR; + return videobuf_poll_stream(file, &fh->vb_vidq, + wait); } poll_wait(file, &buf->vb.done, wait); if (buf->vb.state == STATE_DONE || |