diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-10-08 12:20:02 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-10-08 12:20:02 -0300 |
commit | bee12cc3dc8cc34a30ff03b084b809f5bfbb2217 (patch) | |
tree | 49ac4afe2266bad1684b34c9837abae63d7edd9a /linux/drivers/media/video/videobuf-vmalloc.c | |
parent | 058682061fb91c532ddeab61b5889c64b31472e0 (diff) | |
download | mediapointer-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.c | 4 |
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); |