diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2010-01-12 20:22:33 -0500 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2010-01-14 03:48:46 -0500 |
commit | 77cb5c75e89ccfeb993d9dec37f8edb3a855e9f4 (patch) | |
tree | 77bd8a25ba752b26fe54004433ab344dc2c7b5cd | |
parent | e147eae80afe98b86a7921a40a709584e6603e34 (diff) |
drm/nouveau: remove PRIV0 check in nouveau_mem_close()
We don't setup PRIV0 anymore, so this is unnecessary.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_mem.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_mem.c b/drivers/gpu/drm/nouveau/nouveau_mem.c index fb9bdd6edf1f..be4c7781d761 100644 --- a/drivers/gpu/drm/nouveau/nouveau_mem.c +++ b/drivers/gpu/drm/nouveau/nouveau_mem.c | |||
@@ -383,10 +383,7 @@ void nouveau_mem_close(struct drm_device *dev) | |||
383 | { | 383 | { |
384 | struct drm_nouveau_private *dev_priv = dev->dev_private; | 384 | struct drm_nouveau_private *dev_priv = dev->dev_private; |
385 | 385 | ||
386 | if (dev_priv->ttm.bdev.man[TTM_PL_PRIV0].has_type) | ||
387 | ttm_bo_clean_mm(&dev_priv->ttm.bdev, TTM_PL_PRIV0); | ||
388 | ttm_bo_clean_mm(&dev_priv->ttm.bdev, TTM_PL_VRAM); | 386 | ttm_bo_clean_mm(&dev_priv->ttm.bdev, TTM_PL_VRAM); |
389 | |||
390 | ttm_bo_device_release(&dev_priv->ttm.bdev); | 387 | ttm_bo_device_release(&dev_priv->ttm.bdev); |
391 | 388 | ||
392 | nouveau_ttm_global_release(dev_priv); | 389 | nouveau_ttm_global_release(dev_priv); |