summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2010-05-02 05:11:32 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-05-19 12:58:56 -0300
commitdd0daf2a6fb6bec436a3ef68bd585ea09a2a54b7 (patch)
tree5583293904a5e1383b9eb0baf6f823e2b4bb6ae5
parent0eed42e48a6292ebc96606c6a7105c69b37666d0 (diff)
downloadblackbird-op-linux-dd0daf2a6fb6bec436a3ef68bd585ea09a2a54b7.tar.gz
blackbird-op-linux-dd0daf2a6fb6bec436a3ef68bd585ea09a2a54b7.zip
V4L/DVB: v4l2-dev: remove unnecessary lock around atomic clear_bit
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>
-rw-r--r--drivers/media/video/v4l2-dev.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/media/video/v4l2-dev.c b/drivers/media/video/v4l2-dev.c
index 65a7b30524ca..0ca7ec9ca902 100644
--- 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);
OpenPOWER on IntegriCloud