nouveau: oops, we don't need OS_HAS_MTRR actually.
authorStephane Marchesin <marchesin@icps.u-strasbg.fr>
Fri, 5 Jan 2007 19:59:45 +0000 (20:59 +0100)
committerStephane Marchesin <marchesin@icps.u-strasbg.fr>
Fri, 5 Jan 2007 19:59:45 +0000 (20:59 +0100)
shared-core/nouveau_state.c

index 2d0f798..43f9c2a 100644 (file)
@@ -71,10 +71,8 @@ int nouveau_firstopen(struct drm_device *dev)
        ret = nouveau_fifo_init(dev);
        if (ret) return ret;
 
-#if __OS_HAS_MTRR
        /* setup a mtrr over the FB */
        dev_priv->fb_mtrr=drm_mtrr_add(drm_get_resource_start(dev, 1),nouveau_mem_fb_amount(dev), DRM_MTRR_WC);
-#endif
 
        /* FIXME: doesn't belong here, and have no idea what it's for.. */
        if (dev_priv->card_type >= NV_40)
@@ -105,11 +103,9 @@ int nouveau_load(struct drm_device *dev, unsigned long flags)
 
 void nouveau_lastclose(struct drm_device *dev)
 {
-#if __OS_HAS_MTRR
        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);
-#endif
 }
 
 int nouveau_unload(struct drm_device *dev)