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/s390 | |
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/s390')
-rw-r--r-- | drivers/s390/char/raw3270.c | 2 | ||||
-rw-r--r-- | drivers/s390/char/vmwatchdog.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/s390/char/raw3270.c b/drivers/s390/char/raw3270.c index e5cb9248a442..f3b8bb84faf2 100644 --- a/drivers/s390/char/raw3270.c +++ b/drivers/s390/char/raw3270.c | |||
@@ -75,7 +75,7 @@ static LIST_HEAD(raw3270_devices); | |||
75 | static int raw3270_registered; | 75 | static int raw3270_registered; |
76 | 76 | ||
77 | /* Module parameters */ | 77 | /* Module parameters */ |
78 | static int tubxcorrect = 0; | 78 | static bool tubxcorrect = 0; |
79 | module_param(tubxcorrect, bool, 0); | 79 | module_param(tubxcorrect, bool, 0); |
80 | 80 | ||
81 | /* | 81 | /* |
diff --git a/drivers/s390/char/vmwatchdog.c b/drivers/s390/char/vmwatchdog.c index 11312f401c70..2211277a1079 100644 --- a/drivers/s390/char/vmwatchdog.c +++ b/drivers/s390/char/vmwatchdog.c | |||
@@ -28,9 +28,9 @@ | |||
28 | #define MAX_CMDLEN 240 | 28 | #define MAX_CMDLEN 240 |
29 | #define MIN_INTERVAL 15 | 29 | #define MIN_INTERVAL 15 |
30 | static char vmwdt_cmd[MAX_CMDLEN] = "IPL"; | 30 | static char vmwdt_cmd[MAX_CMDLEN] = "IPL"; |
31 | static int vmwdt_conceal; | 31 | static bool vmwdt_conceal; |
32 | 32 | ||
33 | static int vmwdt_nowayout = WATCHDOG_NOWAYOUT; | 33 | static bool vmwdt_nowayout = WATCHDOG_NOWAYOUT; |
34 | 34 | ||
35 | MODULE_LICENSE("GPL"); | 35 | MODULE_LICENSE("GPL"); |
36 | MODULE_AUTHOR("Arnd Bergmann <arndb@de.ibm.com>"); | 36 | MODULE_AUTHOR("Arnd Bergmann <arndb@de.ibm.com>"); |