[Prism54-devel] [PATCH] New MODULE_PARM compatibility code
Martin Dummer
md11@epost.de
Tue, 16 Mar 2004 08:23:44 +0100
Here is my next attempt in supplying a patch....
Once again the code for kernel compatibily < 2.4.24 / module parameters
Driver works well now with kernel 2.4.18
Thanks to Margit!
Martin
diff -Naur prism54-cvs20040313.org/ksrc/isl_ioctl.c
prism54-cvs20040313/ksrc/isl_ioctl.c
--- prism54-cvs20040313.org/ksrc/isl_ioctl.c Wed Mar 10 22:24:16 2004
+++ prism54-cvs20040313/ksrc/isl_ioctl.c Sat Mar 13 16:33:55 2004
@@ -25,7 +25,11 @@
#include <linux/kernel.h>
#include <linux/if_arp.h>
#include <linux/pci.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,25)
#include <linux/moduleparam.h>
+#else
+#define module_param(a, b, c) MODULE_PARM(a, "i")
+#endif
#include <asm/uaccess.h>
diff -Naur prism54-cvs20040313.org/ksrc/islpci_mgt.c
prism54-cvs20040313/ksrc/islpci_mgt.c
--- prism54-cvs20040313.org/ksrc/islpci_mgt.c Wed Mar 10 22:24:16 2004
+++ prism54-cvs20040313/ksrc/islpci_mgt.c Sat Mar 13 16:35:39 2004
@@ -22,7 +22,11 @@
#include <linux/netdevice.h>
#include <linux/module.h>
#include <linux/pci.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,25)
#include <linux/moduleparam.h>
+#else
+#define module_param(a, b, c) MODULE_PARM(a, "i")
+#endif
#include <asm/io.h>
#include <asm/system.h>