nouveau: fix a stupid bug from me.

main
Stephane Marchesin 2007-01-08 00:11:39 +01:00
parent faa4612299
commit 1f0f7d7a18
1 changed files with 3 additions and 0 deletions

View File

@ -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)