summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
authorPekka Paalanen <pq@iki.fi>2009-03-02 22:35:23 +0200
committerPekka Paalanen <pq@iki.fi>2009-03-02 22:35:23 +0200
commit62f4344c98b72535df88a5a3d577c1df314e4f9b (patch)
tree44b5c862881bcacea20cf4f05a508081f5306a18 /linux-core
parent056ce26344197042cbef800436f16d3f8ba288c8 (diff)
drm: drop Linux < 2.6.16 support
Signed-off-by: Pekka Paalanen <pq@iki.fi>
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/drmP.h2
-rw-r--r--linux-core/drm_compat.h10
2 files changed, 0 insertions, 12 deletions
diff --git a/linux-core/drmP.h b/linux-core/drmP.h
index bc68bfef..67702825 100644
--- a/linux-core/drmP.h
+++ b/linux-core/drmP.h
@@ -56,9 +56,7 @@
#include <linux/mm.h>
#include <linux/kref.h>
#include <linux/pagemap.h>
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)
#include <linux/mutex.h>
-#endif
#if defined(__alpha__) || defined(__powerpc__)
#include <asm/pgtable.h> /* For pte_wrprotect */
#endif
diff --git a/linux-core/drm_compat.h b/linux-core/drm_compat.h
index d265ad12..7763da34 100644
--- a/linux-core/drm_compat.h
+++ b/linux-core/drm_compat.h
@@ -107,16 +107,6 @@
#define IRQF_SHARED SA_SHIRQ
#endif
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,16)
-#define mutex_lock down
-#define mutex_unlock up
-
-#define mutex semaphore
-
-#define mutex_init(a) sema_init((a), 1)
-
-#endif
-
#ifndef DEFINE_SPINLOCK
#define DEFINE_SPINLOCK(x) spinlock_t x = SPIN_LOCK_UNLOCKED
#endif