projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0eed42e
)
V4L/DVB: v4l2-dev: remove unnecessary lock around atomic clear_bit
author
Hans Verkuil
<hverkuil@xs4all.nl>
Sun, 2 May 2010 08:11:32 +0000
(
05:11
-0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Wed, 19 May 2010 15:58:56 +0000
(12:58 -0300)
No need to lock when unregistering the device: clear_bit is already an
atomic operation.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/v4l2-dev.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/media/video/v4l2-dev.c
b/drivers/media/video/v4l2-dev.c
index 65a7b30524ca379f0ccb800d8d981d82117ccc77..0ca7ec9ca90269de9d9cffa890ebf0b01ef886b2 100644
(file)
--- a/
drivers/media/video/v4l2-dev.c
+++ b/
drivers/media/video/v4l2-dev.c
@@
-600,9
+600,7
@@
void video_unregister_device(struct video_device *vdev)
if (!vdev || !video_is_registered(vdev))
return;
- mutex_lock(&videodev_lock);
clear_bit(V4L2_FL_REGISTERED, &vdev->flags);
- mutex_unlock(&videodev_lock);
device_unregister(&vdev->dev);
}
EXPORT_SYMBOL(video_unregister_device);