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)
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>

No differences found