Skip to content

Commit

Permalink
V4L/DVB (13417): Fix videobuf_queue_vmalloc_init() prototype
Browse files Browse the repository at this point in the history
For whatever reason, the device structure pointer to
videobuf_queue_vmalloc_init is typed "void *", even though it's passed
right through to videobuf_queue_core_init(), which expects a struct
device pointer.  The other videobuf implementations use struct device *;
I think vmalloc should too.

Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Jonathan Corbet authored and Mauro Carvalho Chehab committed Dec 5, 2009
1 parent f58d785 commit f8b0bca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/media/video/videobuf-vmalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ static struct videobuf_qtype_ops qops = {

void videobuf_queue_vmalloc_init(struct videobuf_queue* q,
const struct videobuf_queue_ops *ops,
void *dev,
struct device *dev,
spinlock_t *irqlock,
enum v4l2_buf_type type,
enum v4l2_field field,
Expand Down
2 changes: 1 addition & 1 deletion include/media/videobuf-vmalloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ struct videobuf_vmalloc_memory

void videobuf_queue_vmalloc_init(struct videobuf_queue* q,
const struct videobuf_queue_ops *ops,
void *dev,
struct device *dev,
spinlock_t *irqlock,
enum v4l2_buf_type type,
enum v4l2_field field,
Expand Down

0 comments on commit f8b0bca

Please sign in to comment.