From abdd523c759a5e19e733e3b544c2f1bcaa7a0b9a Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 15 Jul 2008 16:18:22 +1000 Subject: drm: add fix for PAT on radeon with 2.6.26 --- linux-core/drm_memory.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'linux-core/drm_memory.c') 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) -- cgit v1.2.3 From 764573f3b8bec90f20c3bdd58c4b55490fbbdaf4 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 15 Jul 2008 20:27:14 +1000 Subject: drm: fix missing symbol export --- linux-core/drm_memory.c | 1 + 1 file changed, 1 insertion(+) (limited to 'linux-core/drm_memory.c') diff --git a/linux-core/drm_memory.c b/linux-core/drm_memory.c index 6af73c8d..e1df3dac 100644 --- a/linux-core/drm_memory.c +++ b/linux-core/drm_memory.c @@ -354,6 +354,7 @@ void drm_core_ioremap_wc(struct drm_map *map, struct drm_device *dev) { map->handle = ioremap_wc(map->offset, map->size); } +EXPORT_SYMBOL_GPL(drm_core_ioremap_wc); #endif void drm_core_ioremapfree(struct drm_map *map, struct drm_device *dev) -- cgit v1.2.3