summaryrefslogtreecommitdiff
path: root/linux/drmP.h
diff options
context:
space:
mode:
authorRik Faith <faith@alephnull.com>2000-06-13 14:34:13 +0000
committerRik Faith <faith@alephnull.com>2000-06-13 14:34:13 +0000
commit2fbd4bf0189cf6d421000c7eea85fee3b9c79ed0 (patch)
treeb6dd3b627e04cc9a81ff8f42b94d778378d30a13 /linux/drmP.h
parent1c8b2b5e06f7967babfa49b9dc8bf24316bfe201 (diff)
Unify code with kernel: Change some spacing in comments Add #include
<linux/config.h> to all *_drv.c files
Diffstat (limited to 'linux/drmP.h')
-rw-r--r--linux/drmP.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/linux/drmP.h b/linux/drmP.h
index 350d1ef9..9ad83bde 100644
--- a/linux/drmP.h
+++ b/linux/drmP.h
@@ -33,6 +33,7 @@
#define _DRM_P_H_
#ifdef __KERNEL__
+#include <linux/config.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/miscdevice.h>
@@ -129,7 +130,6 @@ typedef struct wait_queue *wait_queue_head_t;
#endif
/* Generic cmpxchg added in 2.3.x */
-#if CPU != 386
#ifndef __HAVE_ARCH_CMPXCHG
/* Include this here so that driver can be
used with older kernels. */
@@ -164,10 +164,6 @@ static inline unsigned long __cmpxchg(volatile void *ptr, unsigned long old,
((__typeof__(*(ptr)))__cmpxchg((ptr),(unsigned long)(o), \
(unsigned long)(n),sizeof(*(ptr))))
#endif
-#else
- /* Compiling for a 386 proper... */
-#error DRI not supported on Intel 80386
-#endif
/* Macros to make printk easier */
#define DRM_ERROR(fmt, arg...) \