From b47de8d5a3dbfc669c7ba9c6cb66a7491c30b537 Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Mon, 2 Mar 2009 22:09:26 +0200 Subject: drm: drop Linux < 2.6.12 support Signed-off-by: Pekka Paalanen --- linux-core/drm_memory_debug.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'linux-core/drm_memory_debug.c') diff --git a/linux-core/drm_memory_debug.c b/linux-core/drm_memory_debug.c index c196ee2b..faef1d72 100644 --- a/linux-core/drm_memory_debug.c +++ b/linux-core/drm_memory_debug.c @@ -300,11 +300,7 @@ DRM_AGP_MEM *drm_alloc_agp(struct drm_device *dev, int pages, u32 type) return NULL; } -#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,11) - if ((handle = drm_agp_allocate_memory(pages, type))) { -#else if ((handle = drm_agp_allocate_memory(dev->agp->bridge, pages, type))) { -#endif spin_lock(&drm_mem_lock); ++drm_mem_stats[DRM_MEM_TOTALAGP].succeed_count; drm_mem_stats[DRM_MEM_TOTALAGP].bytes_allocated -- cgit v1.2.3