diff options
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/v4l2-dev.c | 2 |
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) | |||
600 | if (!vdev || !video_is_registered(vdev)) | 600 | if (!vdev || !video_is_registered(vdev)) |
601 | return; | 601 | return; |
602 | 602 | ||
603 | mutex_lock(&videodev_lock); | ||
604 | clear_bit(V4L2_FL_REGISTERED, &vdev->flags); | 603 | clear_bit(V4L2_FL_REGISTERED, &vdev->flags); |
605 | mutex_unlock(&videodev_lock); | ||
606 | device_unregister(&vdev->dev); | 604 | device_unregister(&vdev->dev); |
607 | } | 605 | } |
608 | EXPORT_SYMBOL(video_unregister_device); | 606 | EXPORT_SYMBOL(video_unregister_device); |