From: David Herrmann Date: Wed, 23 Jul 2014 08:34:52 +0000 (+0200) Subject: drm: make minor->index available early X-Git-Tag: omap-for-v3.17/fixes-against-rc2~125^2~4^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1b8596283f681b82546d6302bc7c372fdb2d422;p=pandora-kernel.git drm: make minor->index available early Instead of allocating the minor-index during registration, we now do this during allocation. This way, debug-messages between minor-allocation and minor-registration will now use the correct minor instead of 0. Same is done for unregistration vs. free, so debug-messages between device-shutdown and device-destruction show proper indices. Even though minor-indices are allocated early, we don't enable minor lookup early. Instead, we keep the entry set to NULL and replace it during registration / unregistration. This way, the index is allocated but lookup only works if registered. Reviewed-by: Daniel Vetter Reviewed-by: Alex Deucher Signed-off-by: David Herrmann --- Reading git-diff-tree failed