]> git.neil.brown.name Git - history.git/commit
[PCMCIA] Conversion to module_param
authorPavel Roskin <proski@org.rmk.(none)>
Sat, 17 Apr 2004 10:41:18 +0000 (11:41 +0100)
committerRussell King <rmk@flint.arm.linux.org.uk>
Sat, 17 Apr 2004 10:41:18 +0000 (11:41 +0100)
commit32ee9eec9f9e3eda7e5d948cd2c09127b15b1e90
tree180459bf1c6a16f1bb9e983c6d2a341c9791a1b6
parent3b32207738936ea61c3d796ae4840e70b5fc21d5
[PCMCIA] Conversion to module_param

Patch from: Pavel Roskin

As it turns out, mixing MODULE_PARM and module_param in one module is
wrong.  The parameters specified in module_param are ignored.  I've just
posted a patch to LKML that will detect this condition and warn about it.

The new debugging code used the new-style module_param, which means that
all instances of MODULE_PARM should be converted.  The attached patch does
that.

An additional bonus is that module_param_array provides the number of
array elements.  This allowed me to change tcic.c and i82365.c to use
this number for IRQ list.  This change was tested with i82365.  If
"irq_list" is not specified, irq_list_count is 0.

I set all permissions to 0444 to be safe.  I think we have no secrets
from the users regarding those parameters.  If some parameters can be
changed safely at the runtime, the permissions could be changed to 0644.
I didn't examine how safe (and how useful) it would be, so it's 0444 for
now.
drivers/pcmcia/cistpl.c
drivers/pcmcia/cs.c
drivers/pcmcia/i82365.c
drivers/pcmcia/rsrc_mgr.c
drivers/pcmcia/tcic.c