diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-10-08 11:20:02 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-10-09 23:03:14 -0400 |
commit | d4cae5a50021271b9ef4e5e39e71e177d12fa8cb (patch) | |
tree | 75f3def69e6b35fc02e46af5661bb45aa006ba9d /drivers/media/video/videobuf-vmalloc.c | |
parent | d5f1b01644b6fd5e9eb480a4762cd6b569cb1246 (diff) |
V4L/DVB (6292): videobuf_core init always require callback implementation
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 'drivers/media/video/videobuf-vmalloc.c')
-rw-r--r-- | drivers/media/video/videobuf-vmalloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/videobuf-vmalloc.c b/drivers/media/video/videobuf-vmalloc.c index c9d6ae0d3b49..2e3689a12a28 100644 --- a/drivers/media/video/videobuf-vmalloc.c +++ b/drivers/media/video/videobuf-vmalloc.c | |||
@@ -333,8 +333,8 @@ void videobuf_queue_vmalloc_init(struct videobuf_queue* q, | |||
333 | unsigned int msize, | 333 | unsigned int msize, |
334 | void *priv) | 334 | void *priv) |
335 | { | 335 | { |
336 | videobuf_queue_init(q, ops, dev, irqlock, type, field, msize, priv); | 336 | videobuf_queue_core_init(q, ops, dev, irqlock, type, field, msize, |
337 | q->int_ops=&qops; | 337 | priv, &qops); |
338 | } | 338 | } |
339 | 339 | ||
340 | EXPORT_SYMBOL_GPL(videobuf_queue_vmalloc_init); | 340 | EXPORT_SYMBOL_GPL(videobuf_queue_vmalloc_init); |