From: David Herrmann Date: Wed, 29 Jan 2014 09:49:19 +0000 (+0100) Subject: drm: add minor-lookup/release helpers X-Git-Tag: v3.15-rc1~51^2~56^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1616c525b98deb34b8f4b02eccf0ae3a1310fa27;p=pandora-kernel.git drm: add minor-lookup/release helpers Instead of accessing drm_minors_idr directly, this adds a small helper to hide the internals. This will help us later to remove the drm_global_mutex requirement for minor-lookup. Furthermore, this also makes sure that minor->dev is always valid and takes a reference-count to the device as long as the minor is used in an open-file. This way, "struct file*"->private_data->dev is guaranteed to be valid (which it has to, as we cannot reset it). Signed-off-by: David Herrmann Reviewed-by: Daniel Vetter --- Reading git-diff-tree failed