diff options
author | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-08-21 14:23:22 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2016-01-11 15:18:48 +0100 |
commit | 57cf79b79b18d885c144889989b47149e23c8dc2 (patch) | |
tree | 839f57209d8a11d881efc88c629c8573860c8365 /drivers/media/media-device.c | |
parent | [media] dvbdev: add support for interfaces (diff) | |
download | linux-57cf79b79b18d885c144889989b47149e23c8dc2.tar.xz linux-57cf79b79b18d885c144889989b47149e23c8dc2.zip |
[media] media: add a linked list to track interfaces by mdev
The media device should list the interface objects, so add a linked list
for those interfaces in struct media_device.
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/media-device.c')
-rw-r--r-- | drivers/media/media-device.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/media-device.c b/drivers/media/media-device.c index 3e649cacfc07..659507bce63f 100644 --- a/drivers/media/media-device.c +++ b/drivers/media/media-device.c @@ -381,6 +381,7 @@ int __must_check __media_device_register(struct media_device *mdev, return -EINVAL; INIT_LIST_HEAD(&mdev->entities); + INIT_LIST_HEAD(&mdev->interfaces); spin_lock_init(&mdev->lock); mutex_init(&mdev->graph_mutex); |