new compatibility header for *_mem_region() functions
authorFrank Mori Hess <fmhess@speakeasy.net>
Sun, 9 Sep 2001 21:38:40 +0000 (21:38 +0000)
committerFrank 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]

diff --git a/include/linux/ioport.h b/include/linux/ioport.h
new file mode 100644 (file)
index 0000000..d5e7eeb
--- /dev/null
@@ -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
+