[media] media: Don't accept early-created links
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 19 Aug 2015 23:18:35 +0000 (20:18 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 11 Jan 2016 14:18:46 +0000 (12:18 -0200)
commit8f6d368f726bb4fa069af5ef5806f15ba6da6ad8
treebf9dd61f3760cb9744f6558fc4a6fde4a90bdbf9
parentada58ced508ffb75ff59f23b726ffc79ac2282fe
[media] media: Don't accept early-created links

Links are graph objects that represent the links of two already
existing objects in the graph.

While with the current implementation, it is possible to create
the links earlier, It doesn't make any sense to allow linking
two objects when they are not both created.

So, remove the code that would be handling those early-created
links and add a BUG_ON() to ensure that.

Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/media-device.c
drivers/media/media-entity.c