drm: cleanup exit path for module unload
authorDave Airlie <airlied@redhat.com>
Fri, 28 Nov 2008 03:43:47 +0000 (13:43 +1000)
committerDave Airlie <airlied@linux.ie>
Mon, 29 Dec 2008 07:47:21 +0000 (17:47 +1000)
commite7f7ab45ebcb54fd5f814ea15ea079e079662f67
tree53e8206501c0b7a00831ea084b52664f7899d1c0
parent4a6908a3a050aacc9c3a2f36b276b46c0629ad91
drm: cleanup exit path for module unload

The current sub-module unload exit path is a mess, it tries
to abuse the idr. Just keep a list of devices per driver struct
and free them in-order on rmmod.

Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_drv.c
drivers/gpu/drm/drm_stub.c
include/drm/drmP.h