[Prism54-devel] [PATCH] New MODULE_PARM compatibility code
Luis R. Rodriguez
mcgrof@ruslug.rutgers.edu
Tue, 16 Mar 2004 03:08:47 -0500
Thanks this will go into the new 2.4 cvs repository, it will take a bit
before this is built.
Luis
On Tue, Mar 16, 2004 at 08:23:44AM +0100, Martin Dummer wrote:
> 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>
>
> _______________________________________________
> Prism54-devel mailing list
> Prism54-devel@prism54.org
> http://prism54.org/mailman/listinfo/prism54-devel
--
GnuPG Key fingerprint = 113F B290 C6D2 0251 4D84 A34A 6ADD 4937 E20A 525E