[media] cx18: embed video_device
Embed the video_device struct to simplify the error handling and in order to (eventually) get rid of video_device_alloc/release. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Cc: Andy Walls <awalls@md.metrocast.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
38a1421ddd
commit
08569d6477
@@ -797,7 +797,7 @@ static int cx18_serialized_open(struct cx18_stream *s, struct file *filp)
|
||||
CX18_DEBUG_WARN("nomem on v4l2 open\n");
|
||||
return -ENOMEM;
|
||||
}
|
||||
v4l2_fh_init(&item->fh, s->video_dev);
|
||||
v4l2_fh_init(&item->fh, &s->video_dev);
|
||||
|
||||
item->cx = cx;
|
||||
item->type = s->type;
|
||||
|
Reference in New Issue
Block a user