aboutsummaryrefslogtreecommitdiff
path: root/linux-core/drm_memory.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2008-07-15 16:18:22 +1000
committerDave Airlie <airlied@linux.ie>2008-07-15 16:18:22 +1000
commitabdd523c759a5e19e733e3b544c2f1bcaa7a0b9a (patch)
tree169afb7ae7c1699c0d2438f27e06773ed9be68eb /linux-core/drm_memory.c
parent76c8e19a29d635d2c62937a381ab33014cfe6cea (diff)
drm: add fix for PAT on radeon with 2.6.26
Diffstat (limited to 'linux-core/drm_memory.c')
-rw-r--r--linux-core/drm_memory.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/linux-core/drm_memory.c b/linux-core/drm_memory.c
index 75f5b521..6af73c8d 100644
--- a/linux-core/drm_memory.c
+++ b/linux-core/drm_memory.c
@@ -348,6 +348,14 @@ void drm_core_ioremap(struct drm_map *map, struct drm_device *dev)
}
EXPORT_SYMBOL_GPL(drm_core_ioremap);
+
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26)
+void drm_core_ioremap_wc(struct drm_map *map, struct drm_device *dev)
+{
+ map->handle = ioremap_wc(map->offset, map->size);
+}
+#endif
+
void drm_core_ioremapfree(struct drm_map *map, struct drm_device *dev)
{
if (!map->handle || !map->size)