summaryrefslogtreecommitdiff
path: root/wctc4xxp
diff options
context:
space:
mode:
authorkpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-01-31 19:12:10 +0000
committerkpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-01-31 19:12:10 +0000
commit10422db19cd009f431f8d5f7917049610ab5331b (patch)
tree51c837a6d3a6612474b0edb9952b03527f7ffca8 /wctc4xxp
parent96f60efee8c9f08e30dece68a4671d065889ee22 (diff)
add compatibility for kernels pre-2.6.10
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@2060 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'wctc4xxp')
-rw-r--r--wctc4xxp/base.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/wctc4xxp/base.c b/wctc4xxp/base.c
index df87d43..4e00ec2 100644
--- a/wctc4xxp/base.c
+++ b/wctc4xxp/base.c
@@ -1688,7 +1688,11 @@ static void cleanup(void)
}
module_param(debug, int, S_IRUGO | S_IWUSR);
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,10)
module_param_array(mode, charp, &mode_count, S_IRUGO | S_IWUSR);
+#else
+module_param_array(mode, charp, mode_count, S_IRUGO | S_IWUSR);
+#endif
module_param(debug_packets, uint, S_IRUGO | S_IWUSR);
module_param(debug_cmd_packets, uint, S_IRUGO | S_IWUSR);
MODULE_DESCRIPTION("Wildcard TC400P+TC400M Transcoder");