drm/nouveau: don't munge in drm_mm internals
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 18 Feb 2011 16:59:11 +0000 (17:59 +0100)
committerDave Airlie <airlied@redhat.com>
Wed, 23 Feb 2011 00:18:20 +0000 (10:18 +1000)
commit31a5b8ce8f3bf20799eb68da9602de2bee58fdd3
tree59e1c0b9cf8b63ebcb6ca9607c6cc6610ad8c388
parenta250b9fdc53a286d32e22f21170382a46b3a3ef5
drm/nouveau: don't munge in drm_mm internals

Nouveau was checking drm_mm internals on teardown to see whether the
memory manager was initialized. Hide these internals in a small
inline helper function.

Acked-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/nouveau/nouveau_object.c
drivers/gpu/drm/nouveau/nv50_instmem.c
drivers/gpu/drm/nouveau/nvc0_instmem.c
include/drm/drm_mm.h