summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
authorEric Anholt <anholt@freebsd.org>2003-12-16 08:57:08 +0000
committerEric Anholt <anholt@freebsd.org>2003-12-16 08:57:08 +0000
commit9fb6986e83a84f6b958e8aba2c20b5988676bd55 (patch)
tree466fa7fd9089d1b7aa4e1257096e177a2c6034c0 /linux-core
parent5285b029876a4d3122ae72cc3d81ca8d184ed9ca (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 'linux-core')
-rw-r--r--linux-core/drm_bufs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/linux-core/drm_bufs.c b/linux-core/drm_bufs.c
index e30e6de8..577a1c99 100644
--- a/linux-core/drm_bufs.c
+++ b/linux-core/drm_bufs.c
@@ -148,7 +148,9 @@ int DRM(addmap)( struct inode *inode, struct file *filp,
MTRR_TYPE_WRCOMB, 1 );
}
#endif
- map->handle = DRM(ioremap)( map->offset, map->size, dev );
+ if (map->type == _DRM_REGISTERS)
+ map->handle = DRM(ioremap)( map->offset, map->size,
+ dev );
break;
case _DRM_SHM: