diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-09-21 04:12:03 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-09-21 04:12:03 -0300 |
commit | 01743e6f42125b8c56b589f07799f514ca96a196 (patch) | |
tree | 57ee48376f2aa24a7983abf4d450c05431b70b1d /linux/drivers/media/video/uvc/uvc_ctrl.c | |
parent | 7e2816a102e8c58b190688cd96930d9c5c84f7f4 (diff) | |
download | mediapointer-dvb-s2-01743e6f42125b8c56b589f07799f514ca96a196.tar.gz mediapointer-dvb-s2-01743e6f42125b8c56b589f07799f514ca96a196.tar.bz2 |
With the recent patch to v4l2 titled "v4l2: use register_chrdev_region
From: David Ellingsworth <david@identd.dyndns.org>
instead of register_chrdev", the internal reference count is no longer
necessary in order to free the internal stk_webcam struct. This patch
removes the reference counter from the stk_webcam struct and frees the
struct via the video_device release callback. It also fixes an
associated bug in stk_camera_probe which could result from
video_unregister_device being called before video_register_device.
Lastly, it simplifies access to the stk_webcam struct in several
places. This patch should apply cleanly against the "working" branch
of the v4l-dvb git repository.
This patch is identical to the patch I sent a couple of months back
titled "stk-webcam: Fix video_device handling" except that it has been
rebased against current modifications to stk-webcam and it no longer
depends on any other outstanding patches.
Acked-by: Jaime Velasco Juan <jsagarribay@gmail.com>
Signed-off-by: David Ellingsworth <david@identd.dyndns.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers/media/video/uvc/uvc_ctrl.c')
0 files changed, 0 insertions, 0 deletions