aboutsummaryrefslogtreecommitdiff
path: root/linux/drmP.h
diff options
context:
space:
mode:
authorRik Faith <faith@alephnull.com>2000-07-20 00:48:12 +0000
committerRik Faith <faith@alephnull.com>2000-07-20 00:48:12 +0000
commitc459c9ead3476a8edc1cd453fafa2b1c83c20e60 (patch)
tree7d77f5db4e08829d887d0de84ed7c8b249c458a6 /linux/drmP.h
parent1d3c4d2ed2d7dd9e91037cff9ef0044a8fc2a6bb (diff)
Added support for building as modules or as part of monolithic kernel
Diffstat (limited to 'linux/drmP.h')
-rw-r--r--linux/drmP.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/linux/drmP.h b/linux/drmP.h
index 9ad83bde..3362313e 100644
--- a/linux/drmP.h
+++ b/linux/drmP.h
@@ -129,6 +129,14 @@ typedef struct wait_queue *wait_queue_head_t;
#define NOPAGE_OOM 0
#endif
+ /* module_init/module_exit added in 2.3.13 */
+#ifndef module_init
+#define module_init(x) int init_module(void) { return x(); }
+#endif
+#ifndef module_exit
+#define module_exit(x) void cleanup_module(void) { x(); }
+#endif
+
/* Generic cmpxchg added in 2.3.x */
#ifndef __HAVE_ARCH_CMPXCHG
/* Include this here so that driver can be