drm/nouveau: rework vram init/fini ordering a little
authorBen Skeggs <bskeggs@redhat.com>
Fri, 10 Jun 2011 03:36:08 +0000 (13:36 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 23 Jun 2011 06:03:46 +0000 (16:03 +1000)
Commit "drm/nouveau: add some debug output if nouveau_mm busy at destroy time"
revealed an issue where vram mm takedown would actually fail due to there
still being nodes present, causing nouveau to leak a small amount of memory
on module unload.

This splits TTM/nouveau_mm a bit more cleanly and ensures nouveau_mm fini
isn't done until all gpuobjs are also destroyed.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>

No differences found