[media] uvc: 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: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
d4352f3639
commit
d8da7513bc
@@ -511,7 +511,7 @@ static int uvc_v4l2_open(struct file *file)
|
||||
stream->dev->users++;
|
||||
mutex_unlock(&stream->dev->lock);
|
||||
|
||||
v4l2_fh_init(&handle->vfh, stream->vdev);
|
||||
v4l2_fh_init(&handle->vfh, &stream->vdev);
|
||||
v4l2_fh_add(&handle->vfh);
|
||||
handle->chain = stream->chain;
|
||||
handle->stream = stream;
|
||||
|
Reference in New Issue
Block a user