]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (9973): v4l2-dev: use the release callback from device instead of cdev
authorHans Verkuil <hverkuil@xs4all.nl>
Sat, 20 Dec 2008 00:28:27 +0000 (21:28 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 30 Dec 2008 11:39:35 +0000 (09:39 -0200)
commitfe85cedf105301d32e467f713697449526624f8e
treeec14edc6348b80390a1787e70828b5cd3401fe3c
parent63ae21baeb0275d74cc78d12fe2b28bebc0990d3
V4L/DVB (9973): v4l2-dev: use the release callback from device instead of cdev

Instead of relying on the cdev release callback we should rely on the
release callback from the device struct. This requires that we use
get_device/put_device to do proper refcounting. In order to do this
safely v4l2-dev.c now sets up its own file_operations that call
out to the driver's ops.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/v4l2-dev.c
include/media/v4l2-dev.h