Ralink rt2500, can't load module
Trever L. Adams
tadams-lists at myrealbox.com
Thu Feb 23 18:11:08 UTC 2006
The below patch is NOT the correct solution. The solutions is to fix up
the calls.
The new format for module_param is module_param(NAME, TYPE, PERMISSION);
So, the NAME is obvious, it stays the same. The TYPE is one of (byte,
short, ushort, int, uint, long, ulong, charp, bool or invbool).
I just now found this http://lwn.net/Articles/22197/ . It answers all
the questions of how to do the fix. I wish I would have found this a
month ago when I was making the driver work. It would have answered my
question in minutes instead of the two hours it took me to track down.
Trever
On Thu, 2006-02-23 at 09:16 -0600, Michael Favia wrote:
> Index: rtmp_main.c
> ===================================================================
> RCS file: /cvsroot/rt2400/source/rt2500/Module/rtmp_main.c,v
> retrieving revision 1.64
> diff -u -r1.64 rtmp_main.c
> --- rtmp_main.c 9 Feb 2006 23:42:10 -0000 1.64
> +++ rtmp_main.c 22 Feb 2006 23:33:41 -0000
> @@ -58,8 +58,8 @@
> MODULE_PARM_DESC(debug, "Enable level: accepted values: 1 to switch debug on, 0 to switch debug off.");
>
> static char *ifname = NULL ;
> -MODULE_PARM(ifname, "s");
> -MODULE_PARM_DESC(ifname, "Network device name (default ra%d)");
> +//MODULE_PARM(ifname, "s");
> +//MODULE_PARM_DESC(ifname, "Network device name (default ra%d)");
>
> // Following information will be show when you run 'modinfo'
> MODULE_AUTHOR("http://rt2x00.serialmonkey.com");
--
"Stop searching forever. Happiness is just next to you." -- Unknown
More information about the fedora-devel-list
mailing list