diff options
-rw-r--r-- | drivers/media/v4l2-core/v4l2-dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/v4l2-core/v4l2-dev.c b/drivers/media/v4l2-core/v4l2-dev.c index b5aaaac427ad..0a30dbf3d05c 100644 --- a/drivers/media/v4l2-core/v4l2-dev.c +++ b/drivers/media/v4l2-core/v4l2-dev.c | |||
@@ -872,8 +872,8 @@ int __video_register_device(struct video_device *vdev, int type, int nr, | |||
872 | 872 | ||
873 | /* Should not happen since we thought this minor was free */ | 873 | /* Should not happen since we thought this minor was free */ |
874 | WARN_ON(video_device[vdev->minor] != NULL); | 874 | WARN_ON(video_device[vdev->minor] != NULL); |
875 | video_device[vdev->minor] = vdev; | ||
876 | vdev->index = get_index(vdev); | 875 | vdev->index = get_index(vdev); |
876 | video_device[vdev->minor] = vdev; | ||
877 | mutex_unlock(&videodev_lock); | 877 | mutex_unlock(&videodev_lock); |
878 | 878 | ||
879 | if (vdev->ioctl_ops) | 879 | if (vdev->ioctl_ops) |