fix return value of request_mem_region compatibility macro so it returns
authorFrank Mori Hess <fmhess@speakeasy.net>
Mon, 4 Jul 2005 18:17:36 +0000 (18:17 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Mon, 4 Jul 2005 18:17:36 +0000 (18:17 +0000)
a non-null value (null indicates error).

include/linux/ioport.h

index 1755fe3ad87fc86162294dec7f3a13a98356edf3..28af4048deda8085d7cee78531a0ba1b26e0597b 100644 (file)
@@ -7,8 +7,7 @@
 
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,2,20)
 
-#define check_mem_region(start,n) 0
-#define request_mem_region(start,n,name) ((void*) 0)
+#define request_mem_region(start,n,name) ((void*) 1)
 #define release_mem_region(start,n)
 
 #endif