summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
authorStephane Marchesin <marchesin@icps.u-strasbg.fr>2007-01-08 00:11:39 +0100
committerStephane Marchesin <marchesin@icps.u-strasbg.fr>2007-01-08 00:11:39 +0100
commit1f0f7d7a180af088d6c79d55da04402f0eff0416 (patch)
tree2a81bdb42e8e61e0097327fe72005fb2f96d15b2 /shared-core
parentfaa46122993bc5970b3d67933bd81d863a3c4762 (diff)
nouveau: fix a stupid bug from me.
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/nouveau_state.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/shared-core/nouveau_state.c b/shared-core/nouveau_state.c
index 951e21f9..44f8c1aa 100644
--- a/shared-core/nouveau_state.c
+++ b/shared-core/nouveau_state.c
@@ -120,7 +120,10 @@ void nouveau_lastclose(struct drm_device *dev)
{
drm_nouveau_private_t *dev_priv = dev->dev_private;
if(dev_priv->fb_mtrr>0)
+ {
drm_mtrr_del(dev_priv->fb_mtrr, drm_get_resource_start(dev, 1),nouveau_mem_fb_amount(dev), DRM_MTRR_WC);
+ dev_priv->fb_mtrr=0;
+ }
}
int nouveau_unload(struct drm_device *dev)