projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
165ddca
)
new compatibility header for *_mem_region() functions
author
Frank Mori Hess
<fmhess@speakeasy.net>
Sun, 9 Sep 2001 21:38:40 +0000
(21:38 +0000)
committer
Frank Mori Hess
<fmhess@speakeasy.net>
Sun, 9 Sep 2001 21:38:40 +0000
(21:38 +0000)
include/linux/ioport.h
[new file with mode: 0644]
patch
|
blob
diff --git a/include/linux/ioport.h
b/include/linux/ioport.h
new file mode 100644
(file)
index 0000000..
d5e7eeb
--- /dev/null
+++ b/
include/linux/ioport.h
@@ -0,0
+1,19
@@
+// linux/ioport.h compatibility header
+
+#ifndef _COMPAT_IOPORT_H
+#define _COMPAT_IOPORT_H
+
+#include <linux/version.h>
+
+#if KERNEL_VERSION_CODE < KERNEL_VERSION(2,3,17)
+
+#define check_mem_region(start,n) 0
+#define request_mem_region(start,ni,name) 0
+#define release_mem_region(start,n) 0
+
+#endif
+
+#include_next <linux/ioport.h>
+
+#endif // _COMPAT_IOPORT_H
+