]> git.sur5r.net Git - groeck-nct6775/commitdiff
make define release_region conditional
authorPhilip J Perry <phil@elrepo.org>
Sat, 18 Jan 2014 23:20:25 +0000 (23:20 +0000)
committerGuenter Roeck <linux@roeck-us.net>
Sat, 18 Jan 2014 23:31:34 +0000 (15:31 -0800)
release_region is defined on RHEL6 although request_muxed_region isn't so generates a warning:

warning: "release_region" redefined

Making it conditional eliminates the warning.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
compat.h

index 49642d2648c96f454ce96a07bce927471e0bbab9..a697a6299678a21ae80f657394bbce51ca8b8566 100644 (file)
--- a/compat.h
+++ b/compat.h
@@ -208,6 +208,8 @@ module_exit(__driver##_exit);
 
 #ifndef request_muxed_region
 #define request_muxed_region(a, b, c) (true)
+#endif
+#ifndef release_region
 #define release_region(a, b)
 #endif