The patch number 14807 was added via Douglas Schilling Landgraf 
<[email protected]>
to http://linuxtv.org/hg/v4l-dvb master development tree.

Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel

If anyone has any objections, please let us know by sending a message to:
        Linux Media Mailing List <[email protected]>

------

From: Hans Verkuil  <[email protected]>
v4l2-dev: remove unnecessary lock around atomic clear_bit


No need to lock when unregistering the device: clear_bit is already an
atomic operation.

Priority: normal

Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Signed-off-by: Douglas Schilling Landgraf <[email protected]>


---

 linux/drivers/media/video/v4l2-dev.c |    2 --
 1 file changed, 2 deletions(-)

diff -r 04889e88f5e4 -r f5b7a238fb77 linux/drivers/media/video/v4l2-dev.c
--- a/linux/drivers/media/video/v4l2-dev.c      Wed May 12 15:29:36 2010 -0300
+++ b/linux/drivers/media/video/v4l2-dev.c      Wed May 12 15:37:12 2010 -0300
@@ -668,9 +668,7 @@
        if (!vdev || !video_is_registered(vdev))
                return;
 
-       mutex_lock(&videodev_lock);
        clear_bit(V4L2_FL_REGISTERED, &vdev->flags);
-       mutex_unlock(&videodev_lock);
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 19)
        class_device_unregister(&vdev->dev);
 #else


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/f5b7a238fb77efbe5b1fa6d0228885cb7c37b50d

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to