Skip to content

Commit

Permalink
V4L/DVB (9973): v4l2-dev: use the release callback from device instea…
Browse files Browse the repository at this point in the history
…d 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>
  • Loading branch information
hverkuil authored and Mauro Carvalho Chehab committed Dec 30, 2008
1 parent be49e36 commit dc93a70
Show file tree
Hide file tree
Showing 2 changed files with 295 additions and 108 deletions.
Loading

0 comments on commit dc93a70

Please sign in to comment.