From: David Herrmann Date: Sun, 20 Oct 2013 16:55:45 +0000 (+0200) Subject: drm: delay minor destruction to drm_dev_free() X-Git-Tag: v3.13-rc1~76^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f6599da8e772fa8de54cdf98e9e03cbaf3946da;p=pandora-kernel.git drm: delay minor destruction to drm_dev_free() Instead of freeing minors in drm_dev_unregister(), we only unplug them and delay the free to drm_dev_free(). Note that if drm_dev_register() has never been called, minors are NULL and this has no effect. This change is needed to allow early device unregistration. If we want to call drm_dev_unregister() on live devices, we need to guarantee that minors are still valid (but unplugged). This way, any open file can still access file_priv->minor->dev to get the DRM device. However, the minor is unplugged so no new users can occur. Signed-off-by: David Herrmann Signed-off-by: Dave Airlie --- Reading git-diff-tree failed