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>
This commit is contained in:
Dave Airlie 2008-11-28 13:43:47 +10:00 • committed by Dave Airlie
commit e7f7ab45eb
3 changed files with 10 additions and 20 deletions