summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/videobuf-vmalloc.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-10-08 12:20:02 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-10-08 12:20:02 -0300
commitbee12cc3dc8cc34a30ff03b084b809f5bfbb2217 (patch)
tree49ac4afe2266bad1684b34c9837abae63d7edd9a /linux/drivers/media/video/videobuf-vmalloc.c
parent058682061fb91c532ddeab61b5889c64b31472e0 (diff)
downloadmediapointer-dvb-s2-bee12cc3dc8cc34a30ff03b084b809f5bfbb2217.tar.gz
mediapointer-dvb-s2-bee12cc3dc8cc34a30ff03b084b809f5bfbb2217.tar.bz2
videobuf_core init always require callback implementation
From: Mauro Carvalho Chehab <mchehab@infradead.org> In the past, videobuf_queue_init were used to initialize PCI DMA videobuffers. This patch renames it, to avoid confusion with the previous kernel API, doing: s/videobuf_queue_init/void videobuf_queue_core_init/ Also, the operations is now part of the function parameter. The function will also add a test if this is defined, otherwise producing BUG. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/videobuf-vmalloc.c')
-rw-r--r--linux/drivers/media/video/videobuf-vmalloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/video/videobuf-vmalloc.c b/linux/drivers/media/video/videobuf-vmalloc.c
index 49b6a3336..a33a4dbbf 100644
--- a/linux/drivers/media/video/videobuf-vmalloc.c
+++ b/linux/drivers/media/video/videobuf-vmalloc.c
@@ -334,8 +334,8 @@ void videobuf_queue_vmalloc_init(struct videobuf_queue* q,
unsigned int msize,
void *priv)
{
- videobuf_queue_init(q, ops, dev, irqlock, type, field, msize, priv);
- q->int_ops=&qops;
+ videobuf_queue_core_init(q, ops, dev, irqlock, type, field, msize,
+ priv, &qops);
}
EXPORT_SYMBOL_GPL(videobuf_queue_vmalloc_init);