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/leds | |
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/leds')
-rw-r--r-- | drivers/leds/leds-clevo-mail.c | 2 | ||||
-rw-r--r-- | drivers/leds/leds-ss4200.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/leds/leds-clevo-mail.c b/drivers/leds/leds-clevo-mail.c index a498135a4e80..1ed1677c916f 100644 --- a/drivers/leds/leds-clevo-mail.c +++ b/drivers/leds/leds-clevo-mail.c | |||
@@ -18,7 +18,7 @@ MODULE_AUTHOR("Márton Németh <nm127@freemail.hu>"); | |||
18 | MODULE_DESCRIPTION("Clevo mail LED driver"); | 18 | MODULE_DESCRIPTION("Clevo mail LED driver"); |
19 | MODULE_LICENSE("GPL"); | 19 | MODULE_LICENSE("GPL"); |
20 | 20 | ||
21 | static unsigned int __initdata nodetect; | 21 | static bool __initdata nodetect; |
22 | module_param_named(nodetect, nodetect, bool, 0); | 22 | module_param_named(nodetect, nodetect, bool, 0); |
23 | MODULE_PARM_DESC(nodetect, "Skip DMI hardware detection"); | 23 | MODULE_PARM_DESC(nodetect, "Skip DMI hardware detection"); |
24 | 24 | ||
diff --git a/drivers/leds/leds-ss4200.c b/drivers/leds/leds-ss4200.c index 614ebebaaa28..57371e1485ab 100644 --- a/drivers/leds/leds-ss4200.c +++ b/drivers/leds/leds-ss4200.c | |||
@@ -79,7 +79,7 @@ static int __init ss4200_led_dmi_callback(const struct dmi_system_id *id) | |||
79 | return 1; | 79 | return 1; |
80 | } | 80 | } |
81 | 81 | ||
82 | static unsigned int __initdata nodetect; | 82 | static bool __initdata nodetect; |
83 | module_param_named(nodetect, nodetect, bool, 0); | 83 | module_param_named(nodetect, nodetect, bool, 0); |
84 | MODULE_PARM_DESC(nodetect, "Skip DMI-based hardware detection"); | 84 | MODULE_PARM_DESC(nodetect, "Skip DMI-based hardware detection"); |
85 | 85 | ||