From: Sylwester Nawrocki Date: Thu, 9 May 2013 11:29:33 +0000 (-0300) Subject: [media] V4L: Remove all links of the media entity when unregistering subdev X-Git-Tag: v3.11-rc1~17^2~114 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2efd3e6e04942aa8206ca26c855eabf67cfdbc0;p=pandora-kernel.git [media] V4L: Remove all links of the media entity when unregistering subdev Remove all links of the subdev's media entity after internal_ops 'unregistered' call and right before unregistering the entity from a media device. It is assumed here that an unregistered (orphan) media entity cannot have links to other entities registered to a media device. It is also assumed the media links should be created/removed with the media graph's mutex held. The above implies that the caller of v4l2_device_unregister_subdev() must not hold the graph's mutex. Reviewed-by: Andrzej Hajda Signed-off-by: Kyungmin Park Acked-by: Sakari Ailus Acked-by: Laurent Pinchart Signed-off-by: Sylwester Nawrocki Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed