diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2006-03-25 06:07:05 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-25 11:22:52 -0500 |
commit | 8d3b33f67fdc0fb364a1ef6d8fbbea7c2e4e6c98 (patch) | |
tree | 7fc48e7544ea6a6c6a7cc7685612a38f5edc25ae /drivers/mtd | |
parent | c721bccece2b3abca4f7b0b95108e68b78445cec (diff) |
[PATCH] Remove MODULE_PARM
MODULE_PARM was actually breaking: recent gcc version optimize them out as
unused. It's time to replace the last users, which are generally in the
most unloved drivers anyway.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/maps/pcmciamtd.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/mtd/maps/pcmciamtd.c b/drivers/mtd/maps/pcmciamtd.c index f0f8916da7ad..f988c817e196 100644 --- a/drivers/mtd/maps/pcmciamtd.c +++ b/drivers/mtd/maps/pcmciamtd.c | |||
@@ -28,7 +28,7 @@ | |||
28 | 28 | ||
29 | #ifdef CONFIG_MTD_DEBUG | 29 | #ifdef CONFIG_MTD_DEBUG |
30 | static int debug = CONFIG_MTD_DEBUG_VERBOSE; | 30 | static int debug = CONFIG_MTD_DEBUG_VERBOSE; |
31 | MODULE_PARM(debug, "i"); | 31 | module_param(debug, int, 0); |
32 | MODULE_PARM_DESC(debug, "Set Debug Level 0=quiet, 5=noisy"); | 32 | MODULE_PARM_DESC(debug, "Set Debug Level 0=quiet, 5=noisy"); |
33 | #undef DEBUG | 33 | #undef DEBUG |
34 | #define DEBUG(n, format, arg...) \ | 34 | #define DEBUG(n, format, arg...) \ |
@@ -89,17 +89,17 @@ static int mem_type; | |||
89 | MODULE_LICENSE("GPL"); | 89 | MODULE_LICENSE("GPL"); |
90 | MODULE_AUTHOR("Simon Evans <spse@secret.org.uk>"); | 90 | MODULE_AUTHOR("Simon Evans <spse@secret.org.uk>"); |
91 | MODULE_DESCRIPTION(DRIVER_DESC); | 91 | MODULE_DESCRIPTION(DRIVER_DESC); |
92 | MODULE_PARM(bankwidth, "i"); | 92 | module_param(bankwidth, int, 0); |
93 | MODULE_PARM_DESC(bankwidth, "Set bankwidth (1=8 bit, 2=16 bit, default=2)"); | 93 | MODULE_PARM_DESC(bankwidth, "Set bankwidth (1=8 bit, 2=16 bit, default=2)"); |
94 | MODULE_PARM(mem_speed, "i"); | 94 | module_param(mem_speed, int, 0); |
95 | MODULE_PARM_DESC(mem_speed, "Set memory access speed in ns"); | 95 | MODULE_PARM_DESC(mem_speed, "Set memory access speed in ns"); |
96 | MODULE_PARM(force_size, "i"); | 96 | module_param(force_size, int, 0); |
97 | MODULE_PARM_DESC(force_size, "Force size of card in MiB (1-64)"); | 97 | MODULE_PARM_DESC(force_size, "Force size of card in MiB (1-64)"); |
98 | MODULE_PARM(setvpp, "i"); | 98 | module_param(setvpp, int, 0); |
99 | MODULE_PARM_DESC(setvpp, "Set Vpp (0=Never, 1=On writes, 2=Always on, default=0)"); | 99 | MODULE_PARM_DESC(setvpp, "Set Vpp (0=Never, 1=On writes, 2=Always on, default=0)"); |
100 | MODULE_PARM(vpp, "i"); | 100 | module_param(vpp, int, 0); |
101 | MODULE_PARM_DESC(vpp, "Vpp value in 1/10ths eg 33=3.3V 120=12V (Dangerous)"); | 101 | MODULE_PARM_DESC(vpp, "Vpp value in 1/10ths eg 33=3.3V 120=12V (Dangerous)"); |
102 | MODULE_PARM(mem_type, "i"); | 102 | module_param(mem_type, int, 0); |
103 | MODULE_PARM_DESC(mem_type, "Set Memory type (0=Flash, 1=RAM, 2=ROM, default=0)"); | 103 | MODULE_PARM_DESC(mem_type, "Set Memory type (0=Flash, 1=RAM, 2=ROM, default=0)"); |
104 | 104 | ||
105 | 105 | ||