diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2012-01-12 18:02:20 -0500 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2012-01-12 18:02:20 -0500 |
commit | 90ab5ee94171b3e28de6bb42ee30b527014e0be7 (patch) | |
tree | fcf89889f6e881f2b231d3d20287c08174ce4b54 /drivers/pcmcia/yenta_socket.c | |
parent | 476bc0015bf09dad39d36a8b19f76f0c181d1ec9 (diff) |
module_param: make bool parameters really bool (drivers & misc)
module_param(bool) used to counter-intuitively take an int. In
fddd5201 (mid-2009) we allowed bool or int/unsigned int using a messy
trick.
It's time to remove the int/unsigned int option. For this version
it'll simply give a warning, but it'll break next kernel version.
Acked-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/pcmcia/yenta_socket.c')
-rw-r--r-- | drivers/pcmcia/yenta_socket.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pcmcia/yenta_socket.c b/drivers/pcmcia/yenta_socket.c index 9dc565c615bd..849c0c11d2af 100644 --- a/drivers/pcmcia/yenta_socket.c +++ b/drivers/pcmcia/yenta_socket.c | |||
@@ -24,15 +24,15 @@ | |||
24 | #include "yenta_socket.h" | 24 | #include "yenta_socket.h" |
25 | #include "i82365.h" | 25 | #include "i82365.h" |
26 | 26 | ||
27 | static int disable_clkrun; | 27 | static bool disable_clkrun; |
28 | module_param(disable_clkrun, bool, 0444); | 28 | module_param(disable_clkrun, bool, 0444); |
29 | MODULE_PARM_DESC(disable_clkrun, "If PC card doesn't function properly, please try this option"); | 29 | MODULE_PARM_DESC(disable_clkrun, "If PC card doesn't function properly, please try this option"); |
30 | 30 | ||
31 | static int isa_probe = 1; | 31 | static bool isa_probe = 1; |
32 | module_param(isa_probe, bool, 0444); | 32 | module_param(isa_probe, bool, 0444); |
33 | MODULE_PARM_DESC(isa_probe, "If set ISA interrupts are probed (default). Set to N to disable probing"); | 33 | MODULE_PARM_DESC(isa_probe, "If set ISA interrupts are probed (default). Set to N to disable probing"); |
34 | 34 | ||
35 | static int pwr_irqs_off; | 35 | static bool pwr_irqs_off; |
36 | module_param(pwr_irqs_off, bool, 0644); | 36 | module_param(pwr_irqs_off, bool, 0644); |
37 | MODULE_PARM_DESC(pwr_irqs_off, "Force IRQs off during power-on of slot. Use only when seeing IRQ storms!"); | 37 | MODULE_PARM_DESC(pwr_irqs_off, "Force IRQs off during power-on of slot. Use only when seeing IRQ storms!"); |
38 | 38 | ||