diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2010-07-09 02:45:57 +0400 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2010-07-13 04:13:53 +0400 |
commit | baf8035edb5d8285cbf0bf2d1895b0a787501f8f (patch) | |
tree | 3c2e81fae78af8d608bfad592395f50bdf5469bd /drivers/gpu/drm/nouveau/nouveau_mem.c | |
parent | 946cbc825adfa8189a035346d5f7ff31c32b549d (diff) | |
download | linux-baf8035edb5d8285cbf0bf2d1895b0a787501f8f.tar.xz |
drm/nouveau: fix mtrr cleanup path
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_mem.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_mem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_mem.c b/drivers/gpu/drm/nouveau/nouveau_mem.c index 5f8f95d40395..5c48b1e02ca4 100644 --- a/drivers/gpu/drm/nouveau/nouveau_mem.c +++ b/drivers/gpu/drm/nouveau/nouveau_mem.c @@ -253,7 +253,7 @@ nouveau_mem_close(struct drm_device *dev) drm_mtrr_del(dev_priv->fb_mtrr, pci_resource_start(dev->pdev, 1), pci_resource_len(dev->pdev, 1), DRM_MTRR_WC); - dev_priv->fb_mtrr = 0; + dev_priv->fb_mtrr = -1; } } |