summaryrefslogtreecommitdiff
path: root/drivers/media
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/media-entity.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/media/media-entity.c b/drivers/media/media-entity.c
index 2f3d3aae20a7..1b2fd724cdbf 100644
--- a/drivers/media/media-entity.c
+++ b/drivers/media/media-entity.c
@@ -173,6 +173,9 @@ void media_gobj_init(struct media_device *mdev,
list_add_tail(&gobj->list, &mdev->interfaces);
break;
}
+
+ mdev->topology_version++;
+
dev_dbg_obj(__func__, gobj);
}
@@ -187,6 +190,8 @@ void media_gobj_remove(struct media_gobj *gobj)
{
dev_dbg_obj(__func__, gobj);
+ gobj->mdev->topology_version++;
+
/* Remove the object from mdev list */
list_del(&gobj->list);
}