Signed-off-by: Pekka Paalanen <p...@iki.fi>
---
 linux-core/drm_os_linux.h |   18 ------------------
 1 files changed, 0 insertions(+), 18 deletions(-)

diff --git a/linux-core/drm_os_linux.h b/linux-core/drm_os_linux.h
index 8921944..4f1e83b 100644
--- a/linux-core/drm_os_linux.h
+++ b/linux-core/drm_os_linux.h
@@ -10,23 +10,6 @@
 #define DRM_CURRENTPID                 current->pid
 #define DRM_SUSER(p)                   capable(CAP_SYS_ADMIN)
 #define DRM_UDELAY(d)                  udelay(d)
-#if LINUX_VERSION_CODE <= 0x020608     /* KERNEL_VERSION(2,6,8) */
-#ifndef __iomem
-#define __iomem
-#endif
-/** Read a byte from a MMIO region */
-#define DRM_READ8(map, offset)         readb(((void __iomem *)(map)->handle) + 
(offset))
-/** Read a word from a MMIO region */
-#define DRM_READ16(map, offset)                readw(((void __iomem 
*)(map)->handle) + (offset))
-/** Read a dword from a MMIO region */
-#define DRM_READ32(map, offset)                readl(((void __iomem 
*)(map)->handle) + (offset))
-/** Write a byte into a MMIO region */
-#define DRM_WRITE8(map, offset, val)   writeb(val, ((void __iomem 
*)(map)->handle) + (offset))
-/** Write a word into a MMIO region */
-#define DRM_WRITE16(map, offset, val)  writew(val, ((void __iomem 
*)(map)->handle) + (offset))
-/** Write a dword into a MMIO region */
-#define DRM_WRITE32(map, offset, val)  writel(val, ((void __iomem 
*)(map)->handle) + (offset))
-#else
 /** Read a byte from a MMIO region */
 #define DRM_READ8(map, offset)         readb((map)->handle + (offset))
 /** Read a word from a MMIO region */
@@ -39,7 +22,6 @@
 #define DRM_WRITE16(map, offset, val)  writew(val, (map)->handle + (offset))
 /** Write a dword into a MMIO region */
 #define DRM_WRITE32(map, offset, val)  writel(val, (map)->handle + (offset))
-#endif
 /** Read memory barrier */
 #define DRM_READMEMORYBARRIER()                rmb()
 /** Write memory barrier */
-- 
1.6.0.6


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to