Index: include/linux/ioport.h
===================================================================
RCS file: /var/cvs/comedi/include/linux/ioport.h,v
retrieving revision 1.5
diff -u -r1.5 ioport.h
--- include/linux/ioport.h	1 Mar 2002 20:48:20 -0000	1.5
+++ include/linux/ioport.h	8 Mar 2005 14:00:10 -0000
@@ -13,6 +13,24 @@
 
 #endif
 
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,11)
+
+#define REQUEST_REGION(start,n,name) ({ \
+	unsigned long _start=(start); \
+	unsigned long _n=(n); \
+	int ret=check_region(_start,_n); \
+	if(ret>=0){ \
+		request_region(_start,_n,(name)); \
+		ret=0; \
+	} \
+	ret; })
+
+#else
+
+#define REQUEST_REGION(start,n,name) request_region(start,n,name)
+
+#endif
+
 #include_next <linux/ioport.h>
 
 #endif // _COMPAT_IOPORT_H

