summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_gem.c
diff options
context:
space:
mode:
authorDavid Herrmann2014-07-23 10:34:52 +0200
committerDavid Herrmann2014-08-05 16:08:17 +0200
commitf1b8596283f681b82546d6302bc7c372fdb2d422 (patch)
tree8f9a45047873ca59f5875d6e42562121659e24b7 /drivers/gpu/drm/drm_gem.c
parentdrm: merge drm_drv.c into drm_ioctl.c (diff)
downloadkernel-qcow2-linux-f1b8596283f681b82546d6302bc7c372fdb2d422.tar.gz
kernel-qcow2-linux-f1b8596283f681b82546d6302bc7c372fdb2d422.tar.xz
kernel-qcow2-linux-f1b8596283f681b82546d6302bc7c372fdb2d422.zip
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 <daniel.vetter@ffwll.ch> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/drm_gem.c')
0 files changed, 0 insertions, 0 deletions