aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/media-device.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/media-device.c')
-rw-r--r--drivers/media/media-device.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/media-device.c b/drivers/media/media-device.c
index a36509a1df09..d2bc809d7a2a 100644
--- a/drivers/media/media-device.c
+++ b/drivers/media/media-device.c
@@ -73,6 +73,7 @@ int __must_check media_device_register(struct media_device *mdev)
73 mdev->entity_id = 1; 73 mdev->entity_id = 1;
74 INIT_LIST_HEAD(&mdev->entities); 74 INIT_LIST_HEAD(&mdev->entities);
75 spin_lock_init(&mdev->lock); 75 spin_lock_init(&mdev->lock);
76 mutex_init(&mdev->graph_mutex);
76 77
77 /* Register the device node. */ 78 /* Register the device node. */
78 mdev->devnode.fops = &media_device_fops; 79 mdev->devnode.fops = &media_device_fops;