summaryrefslogtreecommitdiff
path: root/linux-core/drm_compat.h
diff options
context:
space:
mode:
authorPekka Paalanen <pq@iki.fi>2009-03-02 00:17:44 +0200
committerPekka Paalanen <pq@iki.fi>2009-03-02 00:21:09 +0200
commit4c439ac4a7fa627691dfcd6a4be67cd95d8d33ee (patch)
tree0a4eee14b453def235ae51d9a292d5b5c518195d /linux-core/drm_compat.h
parent4bdddf57155a774318ed3739ede9511f074d394e (diff)
drm: drop Linux < 2.6.10 support
Signed-off-by: Pekka Paalanen <pq@iki.fi>
Diffstat (limited to 'linux-core/drm_compat.h')
-rw-r--r--linux-core/drm_compat.h21
1 files changed, 0 insertions, 21 deletions
diff --git a/linux-core/drm_compat.h b/linux-core/drm_compat.h
index a5673563..937908aa 100644
--- a/linux-core/drm_compat.h
+++ b/linux-core/drm_compat.h
@@ -107,27 +107,6 @@
#define IRQF_SHARED SA_SHIRQ
#endif
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,10)
-static inline int remap_pfn_range(struct vm_area_struct *vma, unsigned long from, unsigned long pfn, unsigned long size, pgprot_t pgprot)
-{
- return remap_page_range(vma, from,
- pfn << PAGE_SHIFT,
- size,
- pgprot);
-}
-
-static __inline__ void *kcalloc(size_t nmemb, size_t size, int flags)
-{
- void *addr;
-
- addr = kmalloc(size * nmemb, flags);
- if (addr != NULL)
- memset((void *)addr, 0, size * nmemb);
-
- return addr;
-}
-#endif
-
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,16)
#define mutex_lock down
#define mutex_unlock up