diff options
Diffstat (limited to 'drivers/gpu/drm/nouveau/nv04_instmem.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nv04_instmem.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nv04_instmem.c b/drivers/gpu/drm/nouveau/nv04_instmem.c index b8e3edb5c063..b8611b955313 100644 --- a/drivers/gpu/drm/nouveau/nv04_instmem.c +++ b/drivers/gpu/drm/nouveau/nv04_instmem.c | |||
@@ -95,6 +95,9 @@ nv04_instmem_takedown(struct drm_device *dev) | |||
95 | nouveau_ramht_ref(NULL, &dev_priv->ramht, NULL); | 95 | nouveau_ramht_ref(NULL, &dev_priv->ramht, NULL); |
96 | nouveau_gpuobj_ref(NULL, &dev_priv->ramro); | 96 | nouveau_gpuobj_ref(NULL, &dev_priv->ramro); |
97 | nouveau_gpuobj_ref(NULL, &dev_priv->ramfc); | 97 | nouveau_gpuobj_ref(NULL, &dev_priv->ramfc); |
98 | |||
99 | if (drm_mm_initialized(&dev_priv->ramin_heap)) | ||
100 | drm_mm_takedown(&dev_priv->ramin_heap); | ||
98 | } | 101 | } |
99 | 102 | ||
100 | int | 103 | int |