diff options
author | Eric Anholt <anholt@freebsd.org> | 2003-12-16 08:57:08 +0000 |
---|---|---|
committer | Eric Anholt <anholt@freebsd.org> | 2003-12-16 08:57:08 +0000 |
commit | 9fb6986e83a84f6b958e8aba2c20b5988676bd55 (patch) | |
tree | 466fa7fd9089d1b7aa4e1257096e177a2c6034c0 /shared-core/mga_dma.c | |
parent | 5285b029876a4d3122ae72cc3d81ca8d184ed9ca (diff) |
Don't ioremap the framebuffer area. The ioremapped area wasn't used by
anything, and took up valuable KVA. While I'm in the area, clean up BSD
MTRR stuff some more.
Suggested by: jonsmirl
Diffstat (limited to 'shared-core/mga_dma.c')
-rw-r--r-- | shared-core/mga_dma.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/shared-core/mga_dma.c b/shared-core/mga_dma.c index 19bc9e32..5e5c407d 100644 --- a/shared-core/mga_dma.c +++ b/shared-core/mga_dma.c @@ -500,14 +500,6 @@ static int mga_do_init_dma( drm_device_t *dev, drm_mga_init_t *init ) return DRM_ERR(EINVAL); } - DRM_FIND_MAP( dev_priv->fb, init->fb_offset ); - if(!dev_priv->fb) { - DRM_ERROR( "failed to find framebuffer!\n" ); - /* Assign dev_private so we can do cleanup. */ - dev->dev_private = (void *)dev_priv; - mga_do_cleanup_dma( dev ); - return DRM_ERR(EINVAL); - } DRM_FIND_MAP( dev_priv->mmio, init->mmio_offset ); if(!dev_priv->mmio) { DRM_ERROR( "failed to find mmio region!\n" ); |