diff options
author | Wim Van Sebroeck <wim@iguana.be> | 2012-03-05 10:51:11 -0500 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2012-03-27 14:06:02 -0400 |
commit | 86a1e1896c2710402e29a875d8d830244274244d (patch) | |
tree | 1b27f5107ec51e06921e510c67eeca47ba1b5a66 /drivers/watchdog | |
parent | 27c766aaacb265d625dc634bf7903f7f9fd0c697 (diff) |
watchdog: nowayout is bool
nowayout is actually a boolean value.
So make it bool for all watchdog device drivers.
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog')
82 files changed, 162 insertions, 162 deletions
diff --git a/drivers/watchdog/acquirewdt.c b/drivers/watchdog/acquirewdt.c index 8947ccd71efc..4397881c83f4 100644 --- a/drivers/watchdog/acquirewdt.c +++ b/drivers/watchdog/acquirewdt.c | |||
@@ -93,8 +93,8 @@ static int wdt_start = 0x443; | |||
93 | module_param(wdt_start, int, 0); | 93 | module_param(wdt_start, int, 0); |
94 | MODULE_PARM_DESC(wdt_start, "Acquire WDT 'start' io port (default 0x443)"); | 94 | MODULE_PARM_DESC(wdt_start, "Acquire WDT 'start' io port (default 0x443)"); |
95 | 95 | ||
96 | static int nowayout = WATCHDOG_NOWAYOUT; | 96 | static bool nowayout = WATCHDOG_NOWAYOUT; |
97 | module_param(nowayout, int, 0); | 97 | module_param(nowayout, bool, 0); |
98 | MODULE_PARM_DESC(nowayout, | 98 | MODULE_PARM_DESC(nowayout, |
99 | "Watchdog cannot be stopped once started (default=" | 99 | "Watchdog cannot be stopped once started (default=" |
100 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 100 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
diff --git a/drivers/watchdog/advantechwdt.c b/drivers/watchdog/advantechwdt.c index 986258a06676..72e81058176a 100644 --- a/drivers/watchdog/advantechwdt.c +++ b/drivers/watchdog/advantechwdt.c | |||
@@ -78,8 +78,8 @@ MODULE_PARM_DESC(timeout, | |||
78 | "Watchdog timeout in seconds. 1<= timeout <=63, default=" | 78 | "Watchdog timeout in seconds. 1<= timeout <=63, default=" |
79 | __MODULE_STRING(WATCHDOG_TIMEOUT) "."); | 79 | __MODULE_STRING(WATCHDOG_TIMEOUT) "."); |
80 | 80 | ||
81 | static int nowayout = WATCHDOG_NOWAYOUT; | 81 | static bool nowayout = WATCHDOG_NOWAYOUT; |
82 | module_param(nowayout, int, 0); | 82 | module_param(nowayout, bool, 0); |
83 | MODULE_PARM_DESC(nowayout, | 83 | MODULE_PARM_DESC(nowayout, |
84 | "Watchdog cannot be stopped once started (default=" | 84 | "Watchdog cannot be stopped once started (default=" |
85 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 85 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
diff --git a/drivers/watchdog/alim1535_wdt.c b/drivers/watchdog/alim1535_wdt.c index e802f5e02418..41b84936a521 100644 --- a/drivers/watchdog/alim1535_wdt.c +++ b/drivers/watchdog/alim1535_wdt.c | |||
@@ -40,8 +40,8 @@ MODULE_PARM_DESC(timeout, | |||
40 | "Watchdog timeout in seconds. (0 < timeout < 18000, default=" | 40 | "Watchdog timeout in seconds. (0 < timeout < 18000, default=" |
41 | __MODULE_STRING(WATCHDOG_TIMEOUT) ")"); | 41 | __MODULE_STRING(WATCHDOG_TIMEOUT) ")"); |
42 | 42 | ||
43 | static int nowayout = WATCHDOG_NOWAYOUT; | 43 | static bool nowayout = WATCHDOG_NOWAYOUT; |
44 | module_param(nowayout, int, 0); | 44 | module_param(nowayout, bool, 0); |
45 | MODULE_PARM_DESC(nowayout, | 45 | MODULE_PARM_DESC(nowayout, |
46 | "Watchdog cannot be stopped once started (default=" | 46 | "Watchdog cannot be stopped once started (default=" |
47 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 47 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
diff --git a/drivers/watchdog/alim7101_wdt.c b/drivers/watchdog/alim7101_wdt.c index e90f4ce32799..b9e9558ab218 100644 --- a/drivers/watchdog/alim7101_wdt.c +++ b/drivers/watchdog/alim7101_wdt.c | |||
@@ -78,8 +78,8 @@ static unsigned long wdt_is_open; | |||
78 | static char wdt_expect_close; | 78 | static char wdt_expect_close; |
79 | static struct pci_dev *alim7101_pmu; | 79 | static struct pci_dev *alim7101_pmu; |
80 | 80 | ||
81 | static int nowayout = WATCHDOG_NOWAYOUT; | 81 | static bool nowayout = WATCHDOG_NOWAYOUT; |
82 | module_param(nowayout, int, 0); | 82 | module_param(nowayout, bool, 0); |
83 | MODULE_PARM_DESC(nowayout, | 83 | MODULE_PARM_DESC(nowayout, |
84 | "Watchdog cannot be stopped once started (default=" | 84 | "Watchdog cannot be stopped once started (default=" |
85 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 85 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
diff --git a/drivers/watchdog/ar7_wdt.c b/drivers/watchdog/ar7_wdt.c index 2df16eb9d6dd..639ae9a23fbc 100644 --- a/drivers/watchdog/ar7_wdt.c +++ b/drivers/watchdog/ar7_wdt.c | |||
@@ -52,8 +52,8 @@ static int margin = 60; | |||
52 | module_param(margin, int, 0); | 52 | module_param(margin, int, 0); |
53 | MODULE_PARM_DESC(margin, "Watchdog margin in seconds"); | 53 | MODULE_PARM_DESC(margin, "Watchdog margin in seconds"); |
54 | 54 | ||
55 | static int nowayout = WATCHDOG_NOWAYOUT; | 55 | static bool nowayout = WATCHDOG_NOWAYOUT; |
56 | module_param(nowayout, int, 0); | 56 | module_param(nowayout, bool, 0); |
57 | MODULE_PARM_DESC(nowayout, "Disable watchdog shutdown on close"); | 57 | MODULE_PARM_DESC(nowayout, "Disable watchdog shutdown on close"); |
58 | 58 | ||
59 | #define READ_REG(x) readl((void __iomem *)&(x)) | 59 | #define READ_REG(x) readl((void __iomem *)&(x)) |
diff --git a/drivers/watchdog/at32ap700x_wdt.c b/drivers/watchdog/at32ap700x_wdt.c index 4ca5d40304b2..2896430ce42c 100644 --- a/drivers/watchdog/at32ap700x_wdt.c +++ b/drivers/watchdog/at32ap700x_wdt.c | |||
@@ -45,8 +45,8 @@ MODULE_PARM_DESC(timeout, | |||
45 | "Timeout value. Limited to be 1 or 2 seconds. (default=" | 45 | "Timeout value. Limited to be 1 or 2 seconds. (default=" |
46 | __MODULE_STRING(TIMEOUT_DEFAULT) ")"); | 46 | __MODULE_STRING(TIMEOUT_DEFAULT) ")"); |
47 | 47 | ||
48 | static int nowayout = WATCHDOG_NOWAYOUT; | 48 | static bool nowayout = WATCHDOG_NOWAYOUT; |
49 | module_param(nowayout, int, 0); | 49 | module_param(nowayout, bool, 0); |
50 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" | 50 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" |
51 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 51 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
52 | 52 | ||
diff --git a/drivers/watchdog/at91rm9200_wdt.c b/drivers/watchdog/at91rm9200_wdt.c index 3ecd246d2cfd..ad12c2030441 100644 --- a/drivers/watchdog/at91rm9200_wdt.c +++ b/drivers/watchdog/at91rm9200_wdt.c | |||
@@ -30,14 +30,14 @@ | |||
30 | #define WDT_MAX_TIME 256 /* seconds */ | 30 | #define WDT_MAX_TIME 256 /* seconds */ |
31 | 31 | ||
32 | static int wdt_time = WDT_DEFAULT_TIME; | 32 | static int wdt_time = WDT_DEFAULT_TIME; |
33 | static int nowayout = WATCHDOG_NOWAYOUT; | 33 | static bool nowayout = WATCHDOG_NOWAYOUT; |
34 | 34 | ||
35 | module_param(wdt_time, int, 0); | 35 | module_param(wdt_time, int, 0); |
36 | MODULE_PARM_DESC(wdt_time, "Watchdog time in seconds. (default=" | 36 | MODULE_PARM_DESC(wdt_time, "Watchdog time in seconds. (default=" |
37 | __MODULE_STRING(WDT_DEFAULT_TIME) ")"); | 37 | __MODULE_STRING(WDT_DEFAULT_TIME) ")"); |
38 | 38 | ||
39 | #ifdef CONFIG_WATCHDOG_NOWAYOUT | 39 | #ifdef CONFIG_WATCHDOG_NOWAYOUT |
40 | module_param(nowayout, int, 0); | 40 | module_param(nowayout, bool, 0); |
41 | MODULE_PARM_DESC(nowayout, | 41 | MODULE_PARM_DESC(nowayout, |
42 | "Watchdog cannot be stopped once started (default=" | 42 | "Watchdog cannot be stopped once started (default=" |
43 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 43 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
diff --git a/drivers/watchdog/at91sam9_wdt.c b/drivers/watchdog/at91sam9_wdt.c index cf39847bbad3..05e1be85fdee 100644 --- a/drivers/watchdog/at91sam9_wdt.c +++ b/drivers/watchdog/at91sam9_wdt.c | |||
@@ -62,8 +62,8 @@ module_param(heartbeat, int, 0); | |||
62 | MODULE_PARM_DESC(heartbeat, "Watchdog heartbeats in seconds. " | 62 | MODULE_PARM_DESC(heartbeat, "Watchdog heartbeats in seconds. " |
63 | "(default = " __MODULE_STRING(WDT_HEARTBEAT) ")"); | 63 | "(default = " __MODULE_STRING(WDT_HEARTBEAT) ")"); |
64 | 64 | ||
65 | static int nowayout = WATCHDOG_NOWAYOUT; | 65 | static bool nowayout = WATCHDOG_NOWAYOUT; |
66 | module_param(nowayout, int, 0); | 66 | module_param(nowayout, bool, 0); |
67 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started " | 67 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started " |
68 | "(default=" __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 68 | "(default=" __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
69 | 69 | ||
diff --git a/drivers/watchdog/ath79_wdt.c b/drivers/watchdog/ath79_wdt.c index 3bb49fd8d384..1f9371f49c40 100644 --- a/drivers/watchdog/ath79_wdt.c +++ b/drivers/watchdog/ath79_wdt.c | |||
@@ -47,8 +47,8 @@ | |||
47 | #define WDOG_CTRL_ACTION_NMI 2 /* NMI */ | 47 | #define WDOG_CTRL_ACTION_NMI 2 /* NMI */ |
48 | #define WDOG_CTRL_ACTION_FCR 3 /* full chip reset */ | 48 | #define WDOG_CTRL_ACTION_FCR 3 /* full chip reset */ |
49 | 49 | ||
50 | static int nowayout = WATCHDOG_NOWAYOUT; | 50 | static bool nowayout = WATCHDOG_NOWAYOUT; |
51 | module_param(nowayout, int, 0); | 51 | module_param(nowayout, bool, 0); |
52 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started " | 52 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started " |
53 | "(default=" __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 53 | "(default=" __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
54 | 54 | ||
diff --git a/drivers/watchdog/bcm47xx_wdt.c b/drivers/watchdog/bcm47xx_wdt.c index 1989e179db17..bc0e91e78e86 100644 --- a/drivers/watchdog/bcm47xx_wdt.c +++ b/drivers/watchdog/bcm47xx_wdt.c | |||
@@ -35,14 +35,14 @@ | |||
35 | #define WDT_MAX_TIME 255 /* seconds */ | 35 | #define WDT_MAX_TIME 255 /* seconds */ |
36 | 36 | ||
37 | static int wdt_time = WDT_DEFAULT_TIME; | 37 | static int wdt_time = WDT_DEFAULT_TIME; |
38 | static int nowayout = WATCHDOG_NOWAYOUT; | 38 | static bool nowayout = WATCHDOG_NOWAYOUT; |
39 | 39 | ||
40 | module_param(wdt_time, int, 0); | 40 | module_param(wdt_time, int, 0); |
41 | MODULE_PARM_DESC(wdt_time, "Watchdog time in seconds. (default=" | 41 | MODULE_PARM_DESC(wdt_time, "Watchdog time in seconds. (default=" |
42 | __MODULE_STRING(WDT_DEFAULT_TIME) ")"); | 42 | __MODULE_STRING(WDT_DEFAULT_TIME) ")"); |
43 | 43 | ||
44 | #ifdef CONFIG_WATCHDOG_NOWAYOUT | 44 | #ifdef CONFIG_WATCHDOG_NOWAYOUT |
45 | module_param(nowayout, int, 0); | 45 | module_param(nowayout, bool, 0); |
46 | MODULE_PARM_DESC(nowayout, | 46 | MODULE_PARM_DESC(nowayout, |
47 | "Watchdog cannot be stopped once started (default=" | 47 | "Watchdog cannot be stopped once started (default=" |
48 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 48 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
diff --git a/drivers/watchdog/bcm63xx_wdt.c b/drivers/watchdog/bcm63xx_wdt.c index af95b386d8f5..8379dc32fd90 100644 --- a/drivers/watchdog/bcm63xx_wdt.c +++ b/drivers/watchdog/bcm63xx_wdt.c | |||
@@ -52,8 +52,8 @@ static struct { | |||
52 | static int expect_close; | 52 | static int expect_close; |
53 | 53 | ||
54 | static int wdt_time = WDT_DEFAULT_TIME; | 54 | static int wdt_time = WDT_DEFAULT_TIME; |
55 | static int nowayout = WATCHDOG_NOWAYOUT; | 55 | static bool nowayout = WATCHDOG_NOWAYOUT; |
56 | module_param(nowayout, int, 0); | 56 | module_param(nowayout, bool, 0); |
57 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" | 57 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" |
58 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 58 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
59 | 59 | ||
diff --git a/drivers/watchdog/bfin_wdt.c b/drivers/watchdog/bfin_wdt.c index 402e9ccea395..38bc383e0677 100644 --- a/drivers/watchdog/bfin_wdt.c +++ b/drivers/watchdog/bfin_wdt.c | |||
@@ -49,7 +49,7 @@ | |||
49 | #define WATCHDOG_TIMEOUT 20 | 49 | #define WATCHDOG_TIMEOUT 20 |
50 | 50 | ||
51 | static unsigned int timeout = WATCHDOG_TIMEOUT; | 51 | static unsigned int timeout = WATCHDOG_TIMEOUT; |
52 | static int nowayout = WATCHDOG_NOWAYOUT; | 52 | static bool nowayout = WATCHDOG_NOWAYOUT; |
53 | static const struct watchdog_info bfin_wdt_info; | 53 | static const struct watchdog_info bfin_wdt_info; |
54 | static unsigned long open_check; | 54 | static unsigned long open_check; |
55 | static char expect_close; | 55 | static char expect_close; |
@@ -472,7 +472,7 @@ MODULE_PARM_DESC(timeout, | |||
472 | "Watchdog timeout in seconds. (1<=timeout<=((2^32)/SCLK), default=" | 472 | "Watchdog timeout in seconds. (1<=timeout<=((2^32)/SCLK), default=" |
473 | __MODULE_STRING(WATCHDOG_TIMEOUT) ")"); | 473 | __MODULE_STRING(WATCHDOG_TIMEOUT) ")"); |
474 | 474 | ||
475 | module_param(nowayout, int, 0); | 475 | module_param(nowayout, bool, 0); |
476 | MODULE_PARM_DESC(nowayout, | 476 | MODULE_PARM_DESC(nowayout, |
477 | "Watchdog cannot be stopped once started (default=" | 477 | "Watchdog cannot be stopped once started (default=" |
478 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 478 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
diff --git a/drivers/watchdog/dw_wdt.c b/drivers/watchdog/dw_wdt.c index 78a6827f7de6..06de1211a444 100644 --- a/drivers/watchdog/dw_wdt.c +++ b/drivers/watchdog/dw_wdt.c | |||
@@ -46,8 +46,8 @@ | |||
46 | /* The maximum TOP (timeout period) value that can be set in the watchdog. */ | 46 | /* The maximum TOP (timeout period) value that can be set in the watchdog. */ |
47 | #define DW_WDT_MAX_TOP 15 | 47 | #define DW_WDT_MAX_TOP 15 |
48 | 48 | ||
49 | static int nowayout = WATCHDOG_NOWAYOUT; | 49 | static bool nowayout = WATCHDOG_NOWAYOUT; |
50 | module_param(nowayout, int, 0); | 50 | module_param(nowayout, bool, 0); |
51 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started " | 51 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started " |
52 | "(default=" __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 52 | "(default=" __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
53 | 53 | ||
diff --git a/drivers/watchdog/ep93xx_wdt.c b/drivers/watchdog/ep93xx_wdt.c index a6532b52c457..8caa3164270c 100644 --- a/drivers/watchdog/ep93xx_wdt.c +++ b/drivers/watchdog/ep93xx_wdt.c | |||
@@ -39,7 +39,7 @@ | |||
39 | /* default timeout (secs) */ | 39 | /* default timeout (secs) */ |
40 | #define WDT_TIMEOUT 30 | 40 | #define WDT_TIMEOUT 30 |
41 | 41 | ||
42 | static int nowayout = WATCHDOG_NOWAYOUT; | 42 | static bool nowayout = WATCHDOG_NOWAYOUT; |
43 | static int timeout = WDT_TIMEOUT; | 43 | static int timeout = WDT_TIMEOUT; |
44 | 44 | ||
45 | static struct timer_list timer; | 45 | static struct timer_list timer; |
@@ -237,7 +237,7 @@ static void __exit ep93xx_wdt_exit(void) | |||
237 | module_init(ep93xx_wdt_init); | 237 | module_init(ep93xx_wdt_init); |
238 | module_exit(ep93xx_wdt_exit); | 238 | module_exit(ep93xx_wdt_exit); |
239 | 239 | ||
240 | module_param(nowayout, int, 0); | 240 | module_param(nowayout, bool, 0); |
241 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started"); | 241 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started"); |
242 | 242 | ||
243 | module_param(timeout, int, 0); | 243 | module_param(timeout, int, 0); |
diff --git a/drivers/watchdog/eurotechwdt.c b/drivers/watchdog/eurotechwdt.c index 22d967a5ac8c..0c60af14ac65 100644 --- a/drivers/watchdog/eurotechwdt.c +++ b/drivers/watchdog/eurotechwdt.c | |||
@@ -78,8 +78,8 @@ static char *ev = "int"; | |||
78 | 78 | ||
79 | #define WDT_TIMEOUT 60 /* 1 minute */ | 79 | #define WDT_TIMEOUT 60 /* 1 minute */ |
80 | 80 | ||
81 | static int nowayout = WATCHDOG_NOWAYOUT; | 81 | static bool nowayout = WATCHDOG_NOWAYOUT; |
82 | module_param(nowayout, int, 0); | 82 | module_param(nowayout, bool, 0); |
83 | MODULE_PARM_DESC(nowayout, | 83 | MODULE_PARM_DESC(nowayout, |
84 | "Watchdog cannot be stopped once started (default=" | 84 | "Watchdog cannot be stopped once started (default=" |
85 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 85 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
diff --git a/drivers/watchdog/gef_wdt.c b/drivers/watchdog/gef_wdt.c index d95203be37ad..17f4cae770c6 100644 --- a/drivers/watchdog/gef_wdt.c +++ b/drivers/watchdog/gef_wdt.c | |||
@@ -70,8 +70,8 @@ static unsigned int bus_clk; | |||
70 | static char expect_close; | 70 | static char expect_close; |
71 | static DEFINE_SPINLOCK(gef_wdt_spinlock); | 71 | static DEFINE_SPINLOCK(gef_wdt_spinlock); |
72 | 72 | ||
73 | static int nowayout = WATCHDOG_NOWAYOUT; | 73 | static bool nowayout = WATCHDOG_NOWAYOUT; |
74 | module_param(nowayout, int, 0); | 74 | module_param(nowayout, bool, 0); |
75 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" | 75 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" |
76 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 76 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
77 | 77 | ||
diff --git a/drivers/watchdog/geodewdt.c b/drivers/watchdog/geodewdt.c index 19044a39c407..dc563b680abd 100644 --- a/drivers/watchdog/geodewdt.c +++ b/drivers/watchdog/geodewdt.c | |||
@@ -40,8 +40,8 @@ MODULE_PARM_DESC(timeout, | |||
40 | "Watchdog timeout in seconds. 1<= timeout <=131, default=" | 40 | "Watchdog timeout in seconds. 1<= timeout <=131, default=" |
41 | __MODULE_STRING(WATCHDOG_TIMEOUT) "."); | 41 | __MODULE_STRING(WATCHDOG_TIMEOUT) "."); |
42 | 42 | ||
43 | static int nowayout = WATCHDOG_NOWAYOUT; | 43 | static bool nowayout = WATCHDOG_NOWAYOUT; |
44 | module_param(nowayout, int, 0); | 44 | module_param(nowayout, bool, 0); |
45 | MODULE_PARM_DESC(nowayout, | 45 | MODULE_PARM_DESC(nowayout, |
46 | "Watchdog cannot be stopped once started (default=" | 46 | "Watchdog cannot be stopped once started (default=" |
47 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 47 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
diff --git a/drivers/watchdog/hpwdt.c b/drivers/watchdog/hpwdt.c index 54c64f56af2a..cbc7ceef2786 100644 --- a/drivers/watchdog/hpwdt.c +++ b/drivers/watchdog/hpwdt.c | |||
@@ -47,7 +47,7 @@ | |||
47 | 47 | ||
48 | static unsigned int soft_margin = DEFAULT_MARGIN; /* in seconds */ | 48 | static unsigned int soft_margin = DEFAULT_MARGIN; /* in seconds */ |
49 | static unsigned int reload; /* the computed soft_margin */ | 49 | static unsigned int reload; /* the computed soft_margin */ |
50 | static int nowayout = WATCHDOG_NOWAYOUT; | 50 | static bool nowayout = WATCHDOG_NOWAYOUT; |
51 | static char expect_release; | 51 | static char expect_release; |
52 | static unsigned long hpwdt_is_open; | 52 | static unsigned long hpwdt_is_open; |
53 | 53 | ||
@@ -874,7 +874,7 @@ MODULE_ALIAS_MISCDEV(WATCHDOG_MINOR); | |||
874 | module_param(soft_margin, int, 0); | 874 | module_param(soft_margin, int, 0); |
875 | MODULE_PARM_DESC(soft_margin, "Watchdog timeout in seconds"); | 875 | MODULE_PARM_DESC(soft_margin, "Watchdog timeout in seconds"); |
876 | 876 | ||
877 | module_param(nowayout, int, 0); | 877 | module_param(nowayout, bool, 0); |
878 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" | 878 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" |
879 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 879 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
880 | 880 | ||
diff --git a/drivers/watchdog/i6300esb.c b/drivers/watchdog/i6300esb.c index 15548e622754..738032a36bcf 100644 --- a/drivers/watchdog/i6300esb.c +++ b/drivers/watchdog/i6300esb.c | |||
@@ -95,8 +95,8 @@ MODULE_PARM_DESC(heartbeat, | |||
95 | "Watchdog heartbeat in seconds. (1<heartbeat<2046, default=" | 95 | "Watchdog heartbeat in seconds. (1<heartbeat<2046, default=" |
96 | __MODULE_STRING(WATCHDOG_HEARTBEAT) ")"); | 96 | __MODULE_STRING(WATCHDOG_HEARTBEAT) ")"); |
97 | 97 | ||
98 | static int nowayout = WATCHDOG_NOWAYOUT; | 98 | static bool nowayout = WATCHDOG_NOWAYOUT; |
99 | module_param(nowayout, int, 0); | 99 | module_param(nowayout, bool, 0); |
100 | MODULE_PARM_DESC(nowayout, | 100 | MODULE_PARM_DESC(nowayout, |
101 | "Watchdog cannot be stopped once started (default=" | 101 | "Watchdog cannot be stopped once started (default=" |
102 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 102 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
diff --git a/drivers/watchdog/iTCO_wdt.c b/drivers/watchdog/iTCO_wdt.c index 3b4db72f6ac8..9fecb95645a3 100644 --- a/drivers/watchdog/iTCO_wdt.c +++ b/drivers/watchdog/iTCO_wdt.c | |||
@@ -414,8 +414,8 @@ MODULE_PARM_DESC(heartbeat, "Watchdog timeout in seconds. " | |||
414 | "5..76 (TCO v1) or 3..614 (TCO v2), default=" | 414 | "5..76 (TCO v1) or 3..614 (TCO v2), default=" |
415 | __MODULE_STRING(WATCHDOG_HEARTBEAT) ")"); | 415 | __MODULE_STRING(WATCHDOG_HEARTBEAT) ")"); |
416 | 416 | ||
417 | static int nowayout = WATCHDOG_NOWAYOUT; | 417 | static bool nowayout = WATCHDOG_NOWAYOUT; |
418 | module_param(nowayout, int, 0); | 418 | module_param(nowayout, bool, 0); |
419 | MODULE_PARM_DESC(nowayout, | 419 | MODULE_PARM_DESC(nowayout, |
420 | "Watchdog cannot be stopped once started (default=" | 420 | "Watchdog cannot be stopped once started (default=" |
421 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 421 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
diff --git a/drivers/watchdog/ib700wdt.c b/drivers/watchdog/ib700wdt.c index 7df861bfdb2c..e187664eaca4 100644 --- a/drivers/watchdog/ib700wdt.c +++ b/drivers/watchdog/ib700wdt.c | |||
@@ -103,8 +103,8 @@ MODULE_PARM_DESC(timeout, | |||
103 | "Watchdog timeout in seconds. 0<= timeout <=30, default=" | 103 | "Watchdog timeout in seconds. 0<= timeout <=30, default=" |
104 | __MODULE_STRING(WATCHDOG_TIMEOUT) "."); | 104 | __MODULE_STRING(WATCHDOG_TIMEOUT) "."); |
105 | 105 | ||
106 | static int nowayout = WATCHDOG_NOWAYOUT; | 106 | static bool nowayout = WATCHDOG_NOWAYOUT; |
107 | module_param(nowayout, int, 0); | 107 | module_param(nowayout, bool, 0); |
108 | MODULE_PARM_DESC(nowayout, | 108 | MODULE_PARM_DESC(nowayout, |
109 | "Watchdog cannot be stopped once started (default=" | 109 | "Watchdog cannot be stopped once started (default=" |
110 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 110 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
diff --git a/drivers/watchdog/ibmasr.c b/drivers/watchdog/ibmasr.c index 6cd496915eb0..bc3fb8fe89ab 100644 --- a/drivers/watchdog/ibmasr.c +++ b/drivers/watchdog/ibmasr.c | |||
@@ -60,7 +60,7 @@ enum { | |||
60 | #define SPRUCE_ASR_TOGGLE_MASK 0x02 /* bit 0: 0, then 1, then 0 */ | 60 | #define SPRUCE_ASR_TOGGLE_MASK 0x02 /* bit 0: 0, then 1, then 0 */ |
61 | 61 | ||
62 | 62 | ||
63 | static int nowayout = WATCHDOG_NOWAYOUT; | 63 | static bool nowayout = WATCHDOG_NOWAYOUT; |
64 | 64 | ||
65 | static unsigned long asr_is_open; | 65 | static unsigned long asr_is_open; |
66 | static char asr_expect_close; | 66 | static char asr_expect_close; |
@@ -411,7 +411,7 @@ static void __exit ibmasr_exit(void) | |||
411 | module_init(ibmasr_init); | 411 | module_init(ibmasr_init); |
412 | module_exit(ibmasr_exit); | 412 | module_exit(ibmasr_exit); |
413 | 413 | ||
414 | module_param(nowayout, int, 0); | 414 | module_param(nowayout, bool, 0); |
415 | MODULE_PARM_DESC(nowayout, | 415 | MODULE_PARM_DESC(nowayout, |
416 | "Watchdog cannot be stopped once started (default=" | 416 | "Watchdog cannot be stopped once started (default=" |
417 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 417 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
diff --git a/drivers/watchdog/imx2_wdt.c b/drivers/watchdog/imx2_wdt.c index d34a426ad178..7a2b734fcdc7 100644 --- a/drivers/watchdog/imx2_wdt.c +++ b/drivers/watchdog/imx2_wdt.c | |||
@@ -68,8 +68,8 @@ static struct { | |||
68 | 68 | ||
69 | static struct miscdevice imx2_wdt_miscdev; | 69 | static struct miscdevice imx2_wdt_miscdev; |
70 | 70 | ||
71 | static int nowayout = WATCHDOG_NOWAYOUT; | 71 | static bool nowayout = WATCHDOG_NOWAYOUT; |
72 | module_param(nowayout, int, 0); | 72 | module_param(nowayout, bool, 0); |
73 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" | 73 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" |
74 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 74 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
75 | 75 | ||
diff --git a/drivers/watchdog/indydog.c b/drivers/watchdog/indydog.c index 5fa5b2d25e8f..6d90f7a2ce22 100644 --- a/drivers/watchdog/indydog.c +++ b/drivers/watchdog/indydog.c | |||
@@ -33,8 +33,8 @@ static DEFINE_SPINLOCK(indydog_lock); | |||
33 | 33 | ||
34 | #define WATCHDOG_TIMEOUT 30 /* 30 sec default timeout */ | 34 | #define WATCHDOG_TIMEOUT 30 /* 30 sec default timeout */ |
35 | 35 | ||
36 | static int nowayout = WATCHDOG_NOWAYOUT; | 36 | static bool nowayout = WATCHDOG_NOWAYOUT; |
37 | module_param(nowayout, int, 0); | 37 | module_param(nowayout, bool, 0); |
38 | MODULE_PARM_DESC(nowayout, | 38 | MODULE_PARM_DESC(nowayout, |
39 | "Watchdog cannot be stopped once started (default=" | 39 | "Watchdog cannot be stopped once started (default=" |
40 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 40 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
diff --git a/drivers/watchdog/iop_wdt.c b/drivers/watchdog/iop_wdt.c index add259b1887c..d964faf1a250 100644 --- a/drivers/watchdog/iop_wdt.c +++ b/drivers/watchdog/iop_wdt.c | |||
@@ -36,7 +36,7 @@ | |||
36 | #include <linux/uaccess.h> | 36 | #include <linux/uaccess.h> |
37 | #include <mach/hardware.h> | 37 | #include <mach/hardware.h> |
38 | 38 | ||
39 | static int nowayout = WATCHDOG_NOWAYOUT; | 39 | static bool nowayout = WATCHDOG_NOWAYOUT; |
40 | static unsigned long wdt_status; | 40 | static unsigned long wdt_status; |
41 | static unsigned long boot_status; | 41 | static unsigned long boot_status; |
42 | static DEFINE_SPINLOCK(wdt_lock); | 42 | static DEFINE_SPINLOCK(wdt_lock); |
@@ -253,7 +253,7 @@ static void __exit iop_wdt_exit(void) | |||
253 | module_init(iop_wdt_init); | 253 | module_init(iop_wdt_init); |
254 | module_exit(iop_wdt_exit); | 254 | module_exit(iop_wdt_exit); |
255 | 255 | ||
256 | module_param(nowayout, int, 0); | 256 | module_param(nowayout, bool, 0); |
257 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started"); | 257 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started"); |
258 | 258 | ||
259 | MODULE_AUTHOR("Curt E Bruns <curt.e.bruns@intel.com>"); | 259 | MODULE_AUTHOR("Curt E Bruns <curt.e.bruns@intel.com>"); |
diff --git a/drivers/watchdog/it8712f_wdt.c b/drivers/watchdog/it8712f_wdt.c index ebd1793b9565..f4cce6d66a55 100644 --- a/drivers/watchdog/it8712f_wdt.c +++ b/drivers/watchdog/it8712f_wdt.c | |||
@@ -48,8 +48,8 @@ static int margin = 60; /* in seconds */ | |||
48 | module_param(margin, int, 0); | 48 | module_param(margin, int, 0); |
49 | MODULE_PARM_DESC(margin, "Watchdog margin in seconds"); | 49 | MODULE_PARM_DESC(margin, "Watchdog margin in seconds"); |
50 | 50 | ||
51 | static int nowayout = WATCHDOG_NOWAYOUT; | 51 | static bool nowayout = WATCHDOG_NOWAYOUT; |
52 | module_param(nowayout, int, 0); | 52 | module_param(nowayout, bool, 0); |
53 | MODULE_PARM_DESC(nowayout, "Disable watchdog shutdown on close"); | 53 | MODULE_PARM_DESC(nowayout, "Disable watchdog shutdown on close"); |
54 | 54 | ||
55 | static unsigned long wdt_open; | 55 | static unsigned long wdt_open; |
diff --git a/drivers/watchdog/it87_wdt.c b/drivers/watchdog/it87_wdt.c index 86b368857ce2..405ae7be7c6f 100644 --- a/drivers/watchdog/it87_wdt.c +++ b/drivers/watchdog/it87_wdt.c | |||
@@ -143,7 +143,7 @@ static int nogameport = DEFAULT_NOGAMEPORT; | |||
143 | static int exclusive = DEFAULT_EXCLUSIVE; | 143 | static int exclusive = DEFAULT_EXCLUSIVE; |
144 | static int timeout = DEFAULT_TIMEOUT; | 144 | static int timeout = DEFAULT_TIMEOUT; |
145 | static int testmode = DEFAULT_TESTMODE; | 145 | static int testmode = DEFAULT_TESTMODE; |
146 | static int nowayout = DEFAULT_NOWAYOUT; | 146 | static bool nowayout = DEFAULT_NOWAYOUT; |
147 | 147 | ||
148 | module_param(nogameport, int, 0); | 148 | module_param(nogameport, int, 0); |
149 | MODULE_PARM_DESC(nogameport, "Forbid the activation of game port, default=" | 149 | MODULE_PARM_DESC(nogameport, "Forbid the activation of game port, default=" |
@@ -157,7 +157,7 @@ MODULE_PARM_DESC(timeout, "Watchdog timeout in seconds, default=" | |||
157 | module_param(testmode, int, 0); | 157 | module_param(testmode, int, 0); |
158 | MODULE_PARM_DESC(testmode, "Watchdog test mode (1 = no reboot), default=" | 158 | MODULE_PARM_DESC(testmode, "Watchdog test mode (1 = no reboot), default=" |
159 | __MODULE_STRING(DEFAULT_TESTMODE)); | 159 | __MODULE_STRING(DEFAULT_TESTMODE)); |
160 | module_param(nowayout, int, 0); | 160 | module_param(nowayout, bool, 0); |
161 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started, default=" | 161 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started, default=" |
162 | __MODULE_STRING(WATCHDOG_NOWAYOUT)); | 162 | __MODULE_STRING(WATCHDOG_NOWAYOUT)); |
163 | 163 | ||
diff --git a/drivers/watchdog/ixp2000_wdt.c b/drivers/watchdog/ixp2000_wdt.c index fc603c5558fc..3f047a58d3ae 100644 --- a/drivers/watchdog/ixp2000_wdt.c +++ b/drivers/watchdog/ixp2000_wdt.c | |||
@@ -31,7 +31,7 @@ | |||
31 | #include <linux/uaccess.h> | 31 | #include <linux/uaccess.h> |
32 | #include <mach/hardware.h> | 32 | #include <mach/hardware.h> |
33 | 33 | ||
34 | static int nowayout = WATCHDOG_NOWAYOUT; | 34 | static bool nowayout = WATCHDOG_NOWAYOUT; |
35 | static unsigned int heartbeat = 60; /* (secs) Default is 1 minute */ | 35 | static unsigned int heartbeat = 60; /* (secs) Default is 1 minute */ |
36 | static unsigned long wdt_status; | 36 | static unsigned long wdt_status; |
37 | static DEFINE_SPINLOCK(wdt_lock); | 37 | static DEFINE_SPINLOCK(wdt_lock); |
@@ -207,7 +207,7 @@ MODULE_DESCRIPTION("IXP2000 Network Processor Watchdog"); | |||
207 | module_param(heartbeat, int, 0); | 207 | module_param(heartbeat, int, 0); |
208 | MODULE_PARM_DESC(heartbeat, "Watchdog heartbeat in seconds (default 60s)"); | 208 | MODULE_PARM_DESC(heartbeat, "Watchdog heartbeat in seconds (default 60s)"); |
209 | 209 | ||
210 | module_param(nowayout, int, 0); | 210 | module_param(nowayout, bool, 0); |
211 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started"); | 211 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started"); |
212 | 212 | ||
213 | MODULE_LICENSE("GPL"); | 213 | MODULE_LICENSE("GPL"); |
diff --git a/drivers/watchdog/ixp4xx_wdt.c b/drivers/watchdog/ixp4xx_wdt.c index 792f95cfac85..5580b4fff7fe 100644 --- a/drivers/watchdog/ixp4xx_wdt.c +++ b/drivers/watchdog/ixp4xx_wdt.c | |||
@@ -27,7 +27,7 @@ | |||
27 | #include <linux/uaccess.h> | 27 | #include <linux/uaccess.h> |
28 | #include <mach/hardware.h> | 28 | #include <mach/hardware.h> |
29 | 29 | ||
30 | static int nowayout = WATCHDOG_NOWAYOUT; | 30 | static bool nowayout = WATCHDOG_NOWAYOUT; |
31 | static int heartbeat = 60; /* (secs) Default is 1 minute */ | 31 | static int heartbeat = 60; /* (secs) Default is 1 minute */ |
32 | static unsigned long wdt_status; | 32 | static unsigned long wdt_status; |
33 | static unsigned long boot_status; | 33 | static unsigned long boot_status; |
@@ -204,7 +204,7 @@ MODULE_DESCRIPTION("IXP4xx Network Processor Watchdog"); | |||
204 | module_param(heartbeat, int, 0); | 204 | module_param(heartbeat, int, 0); |
205 | MODULE_PARM_DESC(heartbeat, "Watchdog heartbeat in seconds (default 60s)"); | 205 | MODULE_PARM_DESC(heartbeat, "Watchdog heartbeat in seconds (default 60s)"); |
206 | 206 | ||
207 | module_param(nowayout, int, 0); | 207 | module_param(nowayout, bool, 0); |
208 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started"); | 208 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started"); |
209 | 209 | ||
210 | MODULE_LICENSE("GPL"); | 210 | MODULE_LICENSE("GPL"); |
diff --git a/drivers/watchdog/ks8695_wdt.c b/drivers/watchdog/ks8695_wdt.c index 4ee0c7119b45..59e75d9a6b7f 100644 --- a/drivers/watchdog/ks8695_wdt.c +++ b/drivers/watchdog/ks8695_wdt.c | |||
@@ -30,14 +30,14 @@ | |||
30 | #define WDT_MAX_TIME 171 /* seconds */ | 30 | #define WDT_MAX_TIME 171 /* seconds */ |
31 | 31 | ||
32 | static int wdt_time = WDT_DEFAULT_TIME; | 32 | static int wdt_time = WDT_DEFAULT_TIME; |
33 | static int nowayout = WATCHDOG_NOWAYOUT; | 33 | static bool nowayout = WATCHDOG_NOWAYOUT; |
34 | 34 | ||
35 | module_param(wdt_time, int, 0); | 35 | module_param(wdt_time, int, 0); |
36 | MODULE_PARM_DESC(wdt_time, "Watchdog time in seconds. (default=" | 36 | MODULE_PARM_DESC(wdt_time, "Watchdog time in seconds. (default=" |
37 | __MODULE_STRING(WDT_DEFAULT_TIME) ")"); | 37 | __MODULE_STRING(WDT_DEFAULT_TIME) ")"); |
38 | 38 | ||
39 | #ifdef CONFIG_WATCHDOG_NOWAYOUT | 39 | #ifdef CONFIG_WATCHDOG_NOWAYOUT |
40 | module_param(nowayout, int, 0); | 40 | module_param(nowayout, bool, 0); |
41 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" | 41 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" |
42 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 42 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
43 | #endif | 43 | #endif |
diff --git a/drivers/watchdog/lantiq_wdt.c b/drivers/watchdog/lantiq_wdt.c index 83044351042c..a9593a3a32a0 100644 --- a/drivers/watchdog/lantiq_wdt.c +++ b/drivers/watchdog/lantiq_wdt.c | |||
@@ -40,7 +40,7 @@ | |||
40 | #define LTQ_WDT_DIVIDER 0x40000 | 40 | #define LTQ_WDT_DIVIDER 0x40000 |
41 | #define LTQ_MAX_TIMEOUT ((1 << 16) - 1) /* the reload field is 16 bit */ | 41 | #define LTQ_MAX_TIMEOUT ((1 << 16) - 1) /* the reload field is 16 bit */ |
42 | 42 | ||
43 | static int nowayout = WATCHDOG_NOWAYOUT; | 43 | static bool nowayout = WATCHDOG_NOWAYOUT; |
44 | 44 | ||
45 | static void __iomem *ltq_wdt_membase; | 45 | static void __iomem *ltq_wdt_membase; |
46 | static unsigned long ltq_io_region_clk_rate; | 46 | static unsigned long ltq_io_region_clk_rate; |
@@ -251,7 +251,7 @@ exit_ltq_wdt(void) | |||
251 | module_init(init_ltq_wdt); | 251 | module_init(init_ltq_wdt); |
252 | module_exit(exit_ltq_wdt); | 252 | module_exit(exit_ltq_wdt); |
253 | 253 | ||
254 | module_param(nowayout, int, 0); | 254 | module_param(nowayout, bool, 0); |
255 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started"); | 255 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started"); |
256 | 256 | ||
257 | MODULE_AUTHOR("John Crispin <blogic@openwrt.org>"); | 257 | MODULE_AUTHOR("John Crispin <blogic@openwrt.org>"); |
diff --git a/drivers/watchdog/m54xx_wdt.c b/drivers/watchdog/m54xx_wdt.c index 88e6c8ba4176..663cad86c633 100644 --- a/drivers/watchdog/m54xx_wdt.c +++ b/drivers/watchdog/m54xx_wdt.c | |||
@@ -34,7 +34,7 @@ | |||
34 | #include <asm/m54xxsim.h> | 34 | #include <asm/m54xxsim.h> |
35 | #include <asm/m54xxgpt.h> | 35 | #include <asm/m54xxgpt.h> |
36 | 36 | ||
37 | static int nowayout = WATCHDOG_NOWAYOUT; | 37 | static bool nowayout = WATCHDOG_NOWAYOUT; |
38 | static unsigned int heartbeat = 30; /* (secs) Default is 0.5 minute */ | 38 | static unsigned int heartbeat = 30; /* (secs) Default is 0.5 minute */ |
39 | static unsigned long wdt_status; | 39 | static unsigned long wdt_status; |
40 | 40 | ||
@@ -220,7 +220,7 @@ MODULE_DESCRIPTION("Coldfire M54xx Watchdog"); | |||
220 | module_param(heartbeat, int, 0); | 220 | module_param(heartbeat, int, 0); |
221 | MODULE_PARM_DESC(heartbeat, "Watchdog heartbeat in seconds (default 30s)"); | 221 | MODULE_PARM_DESC(heartbeat, "Watchdog heartbeat in seconds (default 30s)"); |
222 | 222 | ||
223 | module_param(nowayout, int, 0); | 223 | module_param(nowayout, bool, 0); |
224 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started"); | 224 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started"); |
225 | 225 | ||
226 | MODULE_LICENSE("GPL"); | 226 | MODULE_LICENSE("GPL"); |
diff --git a/drivers/watchdog/machzwd.c b/drivers/watchdog/machzwd.c index a2ecc9656920..52ed8834cedb 100644 --- a/drivers/watchdog/machzwd.c +++ b/drivers/watchdog/machzwd.c | |||
@@ -95,8 +95,8 @@ MODULE_DESCRIPTION("MachZ ZF-Logic Watchdog driver"); | |||
95 | MODULE_LICENSE("GPL"); | 95 | MODULE_LICENSE("GPL"); |
96 | MODULE_ALIAS_MISCDEV(WATCHDOG_MINOR); | 96 | MODULE_ALIAS_MISCDEV(WATCHDOG_MINOR); |
97 | 97 | ||
98 | static int nowayout = WATCHDOG_NOWAYOUT; | 98 | static bool nowayout = WATCHDOG_NOWAYOUT; |
99 | module_param(nowayout, int, 0); | 99 | module_param(nowayout, bool, 0); |
100 | MODULE_PARM_DESC(nowayout, | 100 | MODULE_PARM_DESC(nowayout, |
101 | "Watchdog cannot be stopped once started (default=" | 101 | "Watchdog cannot be stopped once started (default=" |
102 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 102 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
diff --git a/drivers/watchdog/max63xx_wdt.c b/drivers/watchdog/max63xx_wdt.c index af63ecfbfa6f..c9e9ff2a9c9d 100644 --- a/drivers/watchdog/max63xx_wdt.c +++ b/drivers/watchdog/max63xx_wdt.c | |||
@@ -34,7 +34,7 @@ | |||
34 | #define MAX_HEARTBEAT 60 | 34 | #define MAX_HEARTBEAT 60 |
35 | 35 | ||
36 | static int heartbeat = DEFAULT_HEARTBEAT; | 36 | static int heartbeat = DEFAULT_HEARTBEAT; |
37 | static int nowayout = WATCHDOG_NOWAYOUT; | 37 | static bool nowayout = WATCHDOG_NOWAYOUT; |
38 | 38 | ||
39 | /* | 39 | /* |
40 | * Memory mapping: a single byte, 3 first lower bits to select bit 3 | 40 | * Memory mapping: a single byte, 3 first lower bits to select bit 3 |
@@ -375,7 +375,7 @@ MODULE_PARM_DESC(heartbeat, | |||
375 | __MODULE_STRING(MAX_HEARTBEAT) ", default " | 375 | __MODULE_STRING(MAX_HEARTBEAT) ", default " |
376 | __MODULE_STRING(DEFAULT_HEARTBEAT)); | 376 | __MODULE_STRING(DEFAULT_HEARTBEAT)); |
377 | 377 | ||
378 | module_param(nowayout, int, 0); | 378 | module_param(nowayout, bool, 0); |
379 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" | 379 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" |
380 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 380 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
381 | 381 | ||
diff --git a/drivers/watchdog/mixcomwd.c b/drivers/watchdog/mixcomwd.c index 17ec5b9dddd2..37e4b52dbce9 100644 --- a/drivers/watchdog/mixcomwd.c +++ b/drivers/watchdog/mixcomwd.c | |||
@@ -108,8 +108,8 @@ static int mixcomwd_timer_alive; | |||
108 | static DEFINE_TIMER(mixcomwd_timer, mixcomwd_timerfun, 0, 0); | 108 | static DEFINE_TIMER(mixcomwd_timer, mixcomwd_timerfun, 0, 0); |
109 | static char expect_close; | 109 | static char expect_close; |
110 | 110 | ||
111 | static int nowayout = WATCHDOG_NOWAYOUT; | 111 | static bool nowayout = WATCHDOG_NOWAYOUT; |
112 | module_param(nowayout, int, 0); | 112 | module_param(nowayout, bool, 0); |
113 | MODULE_PARM_DESC(nowayout, | 113 | MODULE_PARM_DESC(nowayout, |
114 | "Watchdog cannot be stopped once started (default=" | 114 | "Watchdog cannot be stopped once started (default=" |
115 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 115 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
diff --git a/drivers/watchdog/mpc8xxx_wdt.c b/drivers/watchdog/mpc8xxx_wdt.c index 3e335fa0f17d..40f7bf1f8654 100644 --- a/drivers/watchdog/mpc8xxx_wdt.c +++ b/drivers/watchdog/mpc8xxx_wdt.c | |||
@@ -62,8 +62,8 @@ module_param(reset, bool, 0); | |||
62 | MODULE_PARM_DESC(reset, | 62 | MODULE_PARM_DESC(reset, |
63 | "Watchdog Interrupt/Reset Mode. 0 = interrupt, 1 = reset"); | 63 | "Watchdog Interrupt/Reset Mode. 0 = interrupt, 1 = reset"); |
64 | 64 | ||
65 | static int nowayout = WATCHDOG_NOWAYOUT; | 65 | static bool nowayout = WATCHDOG_NOWAYOUT; |
66 | module_param(nowayout, int, 0); | 66 | module_param(nowayout, bool, 0); |
67 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started " | 67 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started " |
68 | "(default=" __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 68 | "(default=" __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
69 | 69 | ||
diff --git a/drivers/watchdog/mpcore_wdt.c b/drivers/watchdog/mpcore_wdt.c index a7de5f6bf688..9e83f333b250 100644 --- a/drivers/watchdog/mpcore_wdt.c +++ b/drivers/watchdog/mpcore_wdt.c | |||
@@ -57,8 +57,8 @@ MODULE_PARM_DESC(mpcore_margin, | |||
57 | "MPcore timer margin in seconds. (0 < mpcore_margin < 65536, default=" | 57 | "MPcore timer margin in seconds. (0 < mpcore_margin < 65536, default=" |
58 | __MODULE_STRING(TIMER_MARGIN) ")"); | 58 | __MODULE_STRING(TIMER_MARGIN) ")"); |
59 | 59 | ||
60 | static int nowayout = WATCHDOG_NOWAYOUT; | 60 | static bool nowayout = WATCHDOG_NOWAYOUT; |
61 | module_param(nowayout, int, 0); | 61 | module_param(nowayout, bool, 0); |
62 | MODULE_PARM_DESC(nowayout, | 62 | MODULE_PARM_DESC(nowayout, |
63 | "Watchdog cannot be stopped once started (default=" | 63 | "Watchdog cannot be stopped once started (default=" |
64 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 64 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
diff --git a/drivers/watchdog/mv64x60_wdt.c b/drivers/watchdog/mv64x60_wdt.c index ee0f828bb34f..c53d025e70df 100644 --- a/drivers/watchdog/mv64x60_wdt.c +++ b/drivers/watchdog/mv64x60_wdt.c | |||
@@ -60,8 +60,8 @@ static unsigned int bus_clk; | |||
60 | static char expect_close; | 60 | static char expect_close; |
61 | static DEFINE_SPINLOCK(mv64x60_wdt_spinlock); | 61 | static DEFINE_SPINLOCK(mv64x60_wdt_spinlock); |
62 | 62 | ||
63 | static int nowayout = WATCHDOG_NOWAYOUT; | 63 | static bool nowayout = WATCHDOG_NOWAYOUT; |
64 | module_param(nowayout, int, 0); | 64 | module_param(nowayout, bool, 0); |
65 | MODULE_PARM_DESC(nowayout, | 65 | MODULE_PARM_DESC(nowayout, |
66 | "Watchdog cannot be stopped once started (default=" | 66 | "Watchdog cannot be stopped once started (default=" |
67 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 67 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
diff --git a/drivers/watchdog/nuc900_wdt.c b/drivers/watchdog/nuc900_wdt.c index 529085b8b8fb..ea4c7448b754 100644 --- a/drivers/watchdog/nuc900_wdt.c +++ b/drivers/watchdog/nuc900_wdt.c | |||
@@ -55,8 +55,8 @@ module_param(heartbeat, int, 0); | |||
55 | MODULE_PARM_DESC(heartbeat, "Watchdog heartbeats in seconds. " | 55 | MODULE_PARM_DESC(heartbeat, "Watchdog heartbeats in seconds. " |
56 | "(default = " __MODULE_STRING(WDT_HEARTBEAT) ")"); | 56 | "(default = " __MODULE_STRING(WDT_HEARTBEAT) ")"); |
57 | 57 | ||
58 | static int nowayout = WATCHDOG_NOWAYOUT; | 58 | static bool nowayout = WATCHDOG_NOWAYOUT; |
59 | module_param(nowayout, int, 0); | 59 | module_param(nowayout, bool, 0); |
60 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started " | 60 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started " |
61 | "(default=" __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 61 | "(default=" __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
62 | 62 | ||
diff --git a/drivers/watchdog/nv_tco.c b/drivers/watchdog/nv_tco.c index 16d9413a81c1..6bbb9efc6125 100644 --- a/drivers/watchdog/nv_tco.c +++ b/drivers/watchdog/nv_tco.c | |||
@@ -61,8 +61,8 @@ module_param(heartbeat, int, 0); | |||
61 | MODULE_PARM_DESC(heartbeat, "Watchdog heartbeat in seconds. (2<heartbeat<39, " | 61 | MODULE_PARM_DESC(heartbeat, "Watchdog heartbeat in seconds. (2<heartbeat<39, " |
62 | "default=" __MODULE_STRING(WATCHDOG_HEARTBEAT) ")"); | 62 | "default=" __MODULE_STRING(WATCHDOG_HEARTBEAT) ")"); |
63 | 63 | ||
64 | static int nowayout = WATCHDOG_NOWAYOUT; | 64 | static bool nowayout = WATCHDOG_NOWAYOUT; |
65 | module_param(nowayout, int, 0); | 65 | module_param(nowayout, bool, 0); |
66 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started" | 66 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started" |
67 | " (default=" __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 67 | " (default=" __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
68 | 68 | ||
diff --git a/drivers/watchdog/octeon-wdt-main.c b/drivers/watchdog/octeon-wdt-main.c index c5a3ff957b8e..461208831428 100644 --- a/drivers/watchdog/octeon-wdt-main.c +++ b/drivers/watchdog/octeon-wdt-main.c | |||
@@ -97,8 +97,8 @@ MODULE_PARM_DESC(heartbeat, | |||
97 | "Watchdog heartbeat in seconds. (0 < heartbeat, default=" | 97 | "Watchdog heartbeat in seconds. (0 < heartbeat, default=" |
98 | __MODULE_STRING(WD_TIMO) ")"); | 98 | __MODULE_STRING(WD_TIMO) ")"); |
99 | 99 | ||
100 | static int nowayout = WATCHDOG_NOWAYOUT; | 100 | static bool nowayout = WATCHDOG_NOWAYOUT; |
101 | module_param(nowayout, int, S_IRUGO); | 101 | module_param(nowayout, bool, S_IRUGO); |
102 | MODULE_PARM_DESC(nowayout, | 102 | MODULE_PARM_DESC(nowayout, |
103 | "Watchdog cannot be stopped once started (default=" | 103 | "Watchdog cannot be stopped once started (default=" |
104 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 104 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
diff --git a/drivers/watchdog/orion_wdt.c b/drivers/watchdog/orion_wdt.c index 25c954d2ffaa..173ddf1ba004 100644 --- a/drivers/watchdog/orion_wdt.c +++ b/drivers/watchdog/orion_wdt.c | |||
@@ -38,7 +38,7 @@ | |||
38 | #define WDT_IN_USE 0 | 38 | #define WDT_IN_USE 0 |
39 | #define WDT_OK_TO_CLOSE 1 | 39 | #define WDT_OK_TO_CLOSE 1 |
40 | 40 | ||
41 | static int nowayout = WATCHDOG_NOWAYOUT; | 41 | static bool nowayout = WATCHDOG_NOWAYOUT; |
42 | static int heartbeat = -1; /* module parameter (seconds) */ | 42 | static int heartbeat = -1; /* module parameter (seconds) */ |
43 | static unsigned int wdt_max_duration; /* (seconds) */ | 43 | static unsigned int wdt_max_duration; /* (seconds) */ |
44 | static unsigned int wdt_tclk; | 44 | static unsigned int wdt_tclk; |
@@ -303,7 +303,7 @@ MODULE_DESCRIPTION("Orion Processor Watchdog"); | |||
303 | module_param(heartbeat, int, 0); | 303 | module_param(heartbeat, int, 0); |
304 | MODULE_PARM_DESC(heartbeat, "Initial watchdog heartbeat in seconds"); | 304 | MODULE_PARM_DESC(heartbeat, "Initial watchdog heartbeat in seconds"); |
305 | 305 | ||
306 | module_param(nowayout, int, 0); | 306 | module_param(nowayout, bool, 0); |
307 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" | 307 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" |
308 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 308 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
309 | 309 | ||
diff --git a/drivers/watchdog/pc87413_wdt.c b/drivers/watchdog/pc87413_wdt.c index a86f405b6325..d5bf112e0077 100644 --- a/drivers/watchdog/pc87413_wdt.c +++ b/drivers/watchdog/pc87413_wdt.c | |||
@@ -66,7 +66,7 @@ static char expect_close; /* is the close expected? */ | |||
66 | 66 | ||
67 | static DEFINE_SPINLOCK(io_lock); /* to guard us from io races */ | 67 | static DEFINE_SPINLOCK(io_lock); /* to guard us from io races */ |
68 | 68 | ||
69 | static int nowayout = WATCHDOG_NOWAYOUT; | 69 | static bool nowayout = WATCHDOG_NOWAYOUT; |
70 | 70 | ||
71 | /* -- Low level function ----------------------------------------*/ | 71 | /* -- Low level function ----------------------------------------*/ |
72 | 72 | ||
@@ -592,7 +592,7 @@ MODULE_PARM_DESC(timeout, | |||
592 | "Watchdog timeout in minutes (default=" | 592 | "Watchdog timeout in minutes (default=" |
593 | __MODULE_STRING(DEFAULT_TIMEOUT) ")."); | 593 | __MODULE_STRING(DEFAULT_TIMEOUT) ")."); |
594 | 594 | ||
595 | module_param(nowayout, int, 0); | 595 | module_param(nowayout, bool, 0); |
596 | MODULE_PARM_DESC(nowayout, | 596 | MODULE_PARM_DESC(nowayout, |
597 | "Watchdog cannot be stopped once started (default=" | 597 | "Watchdog cannot be stopped once started (default=" |
598 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 598 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
diff --git a/drivers/watchdog/pcwd.c b/drivers/watchdog/pcwd.c index fe370defc71f..75694cf24f86 100644 --- a/drivers/watchdog/pcwd.c +++ b/drivers/watchdog/pcwd.c | |||
@@ -204,8 +204,8 @@ MODULE_PARM_DESC(heartbeat, "Watchdog heartbeat in seconds. " | |||
204 | "(2 <= heartbeat <= 7200 or 0=delay-time from dip-switches, default=" | 204 | "(2 <= heartbeat <= 7200 or 0=delay-time from dip-switches, default=" |
205 | __MODULE_STRING(WATCHDOG_HEARTBEAT) ")"); | 205 | __MODULE_STRING(WATCHDOG_HEARTBEAT) ")"); |
206 | 206 | ||
207 | static int nowayout = WATCHDOG_NOWAYOUT; | 207 | static bool nowayout = WATCHDOG_NOWAYOUT; |
208 | module_param(nowayout, int, 0); | 208 | module_param(nowayout, bool, 0); |
209 | MODULE_PARM_DESC(nowayout, | 209 | MODULE_PARM_DESC(nowayout, |
210 | "Watchdog cannot be stopped once started (default=" | 210 | "Watchdog cannot be stopped once started (default=" |
211 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 211 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
diff --git a/drivers/watchdog/pcwd_pci.c b/drivers/watchdog/pcwd_pci.c index 75f2fa84c500..c891399bed6a 100644 --- a/drivers/watchdog/pcwd_pci.c +++ b/drivers/watchdog/pcwd_pci.c | |||
@@ -146,8 +146,8 @@ MODULE_PARM_DESC(heartbeat, "Watchdog heartbeat in seconds. " | |||
146 | "(0<heartbeat<65536 or 0=delay-time from dip-switches, default=" | 146 | "(0<heartbeat<65536 or 0=delay-time from dip-switches, default=" |
147 | __MODULE_STRING(WATCHDOG_HEARTBEAT) ")"); | 147 | __MODULE_STRING(WATCHDOG_HEARTBEAT) ")"); |
148 | 148 | ||
149 | static int nowayout = WATCHDOG_NOWAYOUT; | 149 | static bool nowayout = WATCHDOG_NOWAYOUT; |
150 | module_param(nowayout, int, 0); | 150 | module_param(nowayout, bool, 0); |
151 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" | 151 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" |
152 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 152 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
153 | 153 | ||
diff --git a/drivers/watchdog/pcwd_usb.c b/drivers/watchdog/pcwd_usb.c index 3e66a6bbfec5..7b14d1847927 100644 --- a/drivers/watchdog/pcwd_usb.c +++ b/drivers/watchdog/pcwd_usb.c | |||
@@ -87,8 +87,8 @@ MODULE_PARM_DESC(heartbeat, "Watchdog heartbeat in seconds. " | |||
87 | "(0<heartbeat<65536 or 0=delay-time from dip-switches, default=" | 87 | "(0<heartbeat<65536 or 0=delay-time from dip-switches, default=" |
88 | __MODULE_STRING(WATCHDOG_HEARTBEAT) ")"); | 88 | __MODULE_STRING(WATCHDOG_HEARTBEAT) ")"); |
89 | 89 | ||
90 | static int nowayout = WATCHDOG_NOWAYOUT; | 90 | static bool nowayout = WATCHDOG_NOWAYOUT; |
91 | module_param(nowayout, int, 0); | 91 | module_param(nowayout, bool, 0); |
92 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" | 92 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" |
93 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 93 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
94 | 94 | ||
diff --git a/drivers/watchdog/pika_wdt.c b/drivers/watchdog/pika_wdt.c index e2877623ac44..7d3d471f810c 100644 --- a/drivers/watchdog/pika_wdt.c +++ b/drivers/watchdog/pika_wdt.c | |||
@@ -39,8 +39,8 @@ module_param(heartbeat, int, 0); | |||
39 | MODULE_PARM_DESC(heartbeat, "Watchdog heartbeats in seconds. " | 39 | MODULE_PARM_DESC(heartbeat, "Watchdog heartbeats in seconds. " |
40 | "(default = " __MODULE_STRING(WDT_HEARTBEAT) ")"); | 40 | "(default = " __MODULE_STRING(WDT_HEARTBEAT) ")"); |
41 | 41 | ||
42 | static int nowayout = WATCHDOG_NOWAYOUT; | 42 | static bool nowayout = WATCHDOG_NOWAYOUT; |
43 | module_param(nowayout, int, 0); | 43 | module_param(nowayout, bool, 0); |
44 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started " | 44 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started " |
45 | "(default=" __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 45 | "(default=" __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
46 | 46 | ||
diff --git a/drivers/watchdog/pnx4008_wdt.c b/drivers/watchdog/pnx4008_wdt.c index ae927093cb6d..38fe5488cc96 100644 --- a/drivers/watchdog/pnx4008_wdt.c +++ b/drivers/watchdog/pnx4008_wdt.c | |||
@@ -79,7 +79,7 @@ | |||
79 | 79 | ||
80 | #define WDOG_COUNTER_RATE 13000000 /*the counter clock is 13 MHz fixed */ | 80 | #define WDOG_COUNTER_RATE 13000000 /*the counter clock is 13 MHz fixed */ |
81 | 81 | ||
82 | static int nowayout = WATCHDOG_NOWAYOUT; | 82 | static bool nowayout = WATCHDOG_NOWAYOUT; |
83 | static int heartbeat = DEFAULT_HEARTBEAT; | 83 | static int heartbeat = DEFAULT_HEARTBEAT; |
84 | 84 | ||
85 | static DEFINE_SPINLOCK(io_lock); | 85 | static DEFINE_SPINLOCK(io_lock); |
@@ -321,7 +321,7 @@ MODULE_PARM_DESC(heartbeat, | |||
321 | __MODULE_STRING(MAX_HEARTBEAT) ", default " | 321 | __MODULE_STRING(MAX_HEARTBEAT) ", default " |
322 | __MODULE_STRING(DEFAULT_HEARTBEAT)); | 322 | __MODULE_STRING(DEFAULT_HEARTBEAT)); |
323 | 323 | ||
324 | module_param(nowayout, int, 0); | 324 | module_param(nowayout, bool, 0); |
325 | MODULE_PARM_DESC(nowayout, | 325 | MODULE_PARM_DESC(nowayout, |
326 | "Set to 1 to keep watchdog running after device release"); | 326 | "Set to 1 to keep watchdog running after device release"); |
327 | 327 | ||
diff --git a/drivers/watchdog/pnx833x_wdt.c b/drivers/watchdog/pnx833x_wdt.c index 97959e9738e4..1b62a7dfcc95 100644 --- a/drivers/watchdog/pnx833x_wdt.c +++ b/drivers/watchdog/pnx833x_wdt.c | |||
@@ -55,8 +55,8 @@ module_param(pnx833x_wdt_timeout, int, 0); | |||
55 | MODULE_PARM_DESC(timeout, "Watchdog timeout in Mhz. (68Mhz clock), default=" | 55 | MODULE_PARM_DESC(timeout, "Watchdog timeout in Mhz. (68Mhz clock), default=" |
56 | __MODULE_STRING(PNX_TIMEOUT_VALUE) "(30 seconds)."); | 56 | __MODULE_STRING(PNX_TIMEOUT_VALUE) "(30 seconds)."); |
57 | 57 | ||
58 | static int nowayout = WATCHDOG_NOWAYOUT; | 58 | static bool nowayout = WATCHDOG_NOWAYOUT; |
59 | module_param(nowayout, int, 0); | 59 | module_param(nowayout, bool, 0); |
60 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" | 60 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" |
61 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 61 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
62 | 62 | ||
diff --git a/drivers/watchdog/rc32434_wdt.c b/drivers/watchdog/rc32434_wdt.c index 76c9d1cf8cf1..547353a50ebb 100644 --- a/drivers/watchdog/rc32434_wdt.c +++ b/drivers/watchdog/rc32434_wdt.c | |||
@@ -64,8 +64,8 @@ module_param(timeout, int, 0); | |||
64 | MODULE_PARM_DESC(timeout, "Watchdog timeout value, in seconds (default=" | 64 | MODULE_PARM_DESC(timeout, "Watchdog timeout value, in seconds (default=" |
65 | __MODULE_STRING(WATCHDOG_TIMEOUT) ")"); | 65 | __MODULE_STRING(WATCHDOG_TIMEOUT) ")"); |
66 | 66 | ||
67 | static int nowayout = WATCHDOG_NOWAYOUT; | 67 | static bool nowayout = WATCHDOG_NOWAYOUT; |
68 | module_param(nowayout, int, 0); | 68 | module_param(nowayout, bool, 0); |
69 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" | 69 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" |
70 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 70 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
71 | 71 | ||
diff --git a/drivers/watchdog/s3c2410_wdt.c b/drivers/watchdog/s3c2410_wdt.c index ce18029011f7..96b598c52dac 100644 --- a/drivers/watchdog/s3c2410_wdt.c +++ b/drivers/watchdog/s3c2410_wdt.c | |||
@@ -51,7 +51,7 @@ | |||
51 | #define CONFIG_S3C2410_WATCHDOG_ATBOOT (0) | 51 | #define CONFIG_S3C2410_WATCHDOG_ATBOOT (0) |
52 | #define CONFIG_S3C2410_WATCHDOG_DEFAULT_TIME (15) | 52 | #define CONFIG_S3C2410_WATCHDOG_DEFAULT_TIME (15) |
53 | 53 | ||
54 | static int nowayout = WATCHDOG_NOWAYOUT; | 54 | static bool nowayout = WATCHDOG_NOWAYOUT; |
55 | static int tmr_margin = CONFIG_S3C2410_WATCHDOG_DEFAULT_TIME; | 55 | static int tmr_margin = CONFIG_S3C2410_WATCHDOG_DEFAULT_TIME; |
56 | static int tmr_atboot = CONFIG_S3C2410_WATCHDOG_ATBOOT; | 56 | static int tmr_atboot = CONFIG_S3C2410_WATCHDOG_ATBOOT; |
57 | static int soft_noboot; | 57 | static int soft_noboot; |
@@ -59,7 +59,7 @@ static int debug; | |||
59 | 59 | ||
60 | module_param(tmr_margin, int, 0); | 60 | module_param(tmr_margin, int, 0); |
61 | module_param(tmr_atboot, int, 0); | 61 | module_param(tmr_atboot, int, 0); |
62 | module_param(nowayout, int, 0); | 62 | module_param(nowayout, bool, 0); |
63 | module_param(soft_noboot, int, 0); | 63 | module_param(soft_noboot, int, 0); |
64 | module_param(debug, int, 0); | 64 | module_param(debug, int, 0); |
65 | 65 | ||
diff --git a/drivers/watchdog/sbc60xxwdt.c b/drivers/watchdog/sbc60xxwdt.c index 1d0c971d8857..6b41276755bc 100644 --- a/drivers/watchdog/sbc60xxwdt.c +++ b/drivers/watchdog/sbc60xxwdt.c | |||
@@ -107,8 +107,8 @@ MODULE_PARM_DESC(timeout, | |||
107 | "Watchdog timeout in seconds. (1<=timeout<=3600, default=" | 107 | "Watchdog timeout in seconds. (1<=timeout<=3600, default=" |
108 | __MODULE_STRING(WATCHDOG_TIMEOUT) ")"); | 108 | __MODULE_STRING(WATCHDOG_TIMEOUT) ")"); |
109 | 109 | ||
110 | static int nowayout = WATCHDOG_NOWAYOUT; | 110 | static bool nowayout = WATCHDOG_NOWAYOUT; |
111 | module_param(nowayout, int, 0); | 111 | module_param(nowayout, bool, 0); |
112 | MODULE_PARM_DESC(nowayout, | 112 | MODULE_PARM_DESC(nowayout, |
113 | "Watchdog cannot be stopped once started (default=" | 113 | "Watchdog cannot be stopped once started (default=" |
114 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 114 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
diff --git a/drivers/watchdog/sbc7240_wdt.c b/drivers/watchdog/sbc7240_wdt.c index 77cb302754db..8ab757d3df5f 100644 --- a/drivers/watchdog/sbc7240_wdt.c +++ b/drivers/watchdog/sbc7240_wdt.c | |||
@@ -47,8 +47,8 @@ MODULE_PARM_DESC(timeout, "Watchdog timeout in seconds. (1<=timeout<=" | |||
47 | __MODULE_STRING(SBC7240_MAX_TIMEOUT) ", default=" | 47 | __MODULE_STRING(SBC7240_MAX_TIMEOUT) ", default=" |
48 | __MODULE_STRING(SBC7240_TIMEOUT) ")"); | 48 | __MODULE_STRING(SBC7240_TIMEOUT) ")"); |
49 | 49 | ||
50 | static int nowayout = WATCHDOG_NOWAYOUT; | 50 | static bool nowayout = WATCHDOG_NOWAYOUT; |
51 | module_param(nowayout, int, 0); | 51 | module_param(nowayout, bool, 0); |
52 | MODULE_PARM_DESC(nowayout, "Disable watchdog when closing device file"); | 52 | MODULE_PARM_DESC(nowayout, "Disable watchdog when closing device file"); |
53 | 53 | ||
54 | #define SBC7240_OPEN_STATUS_BIT 0 | 54 | #define SBC7240_OPEN_STATUS_BIT 0 |
diff --git a/drivers/watchdog/sbc8360.c b/drivers/watchdog/sbc8360.c index f72b6e013a93..a9ea385fa125 100644 --- a/drivers/watchdog/sbc8360.c +++ b/drivers/watchdog/sbc8360.c | |||
@@ -197,11 +197,11 @@ static int wd_times[64][2] = { | |||
197 | static int timeout = 27; | 197 | static int timeout = 27; |
198 | static int wd_margin = 0xB; | 198 | static int wd_margin = 0xB; |
199 | static int wd_multiplier = 2; | 199 | static int wd_multiplier = 2; |
200 | static int nowayout = WATCHDOG_NOWAYOUT; | 200 | static bool nowayout = WATCHDOG_NOWAYOUT; |
201 | 201 | ||
202 | module_param(timeout, int, 0); | 202 | module_param(timeout, int, 0); |
203 | MODULE_PARM_DESC(timeout, "Index into timeout table (0-63) (default=27 (60s))"); | 203 | MODULE_PARM_DESC(timeout, "Index into timeout table (0-63) (default=27 (60s))"); |
204 | module_param(nowayout, int, 0); | 204 | module_param(nowayout, bool, 0); |
205 | MODULE_PARM_DESC(nowayout, | 205 | MODULE_PARM_DESC(nowayout, |
206 | "Watchdog cannot be stopped once started (default=" | 206 | "Watchdog cannot be stopped once started (default=" |
207 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 207 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
diff --git a/drivers/watchdog/sbc_epx_c3.c b/drivers/watchdog/sbc_epx_c3.c index 1a13d36c5f12..0c3e9f66ef77 100644 --- a/drivers/watchdog/sbc_epx_c3.c +++ b/drivers/watchdog/sbc_epx_c3.c | |||
@@ -34,8 +34,8 @@ static int epx_c3_alive; | |||
34 | 34 | ||
35 | #define WATCHDOG_TIMEOUT 1 /* 1 sec default timeout */ | 35 | #define WATCHDOG_TIMEOUT 1 /* 1 sec default timeout */ |
36 | 36 | ||
37 | static int nowayout = WATCHDOG_NOWAYOUT; | 37 | static bool nowayout = WATCHDOG_NOWAYOUT; |
38 | module_param(nowayout, int, 0); | 38 | module_param(nowayout, bool, 0); |
39 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" | 39 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" |
40 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 40 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
41 | 41 | ||
diff --git a/drivers/watchdog/sbc_fitpc2_wdt.c b/drivers/watchdog/sbc_fitpc2_wdt.c index ca9c6c4360ee..840428529227 100644 --- a/drivers/watchdog/sbc_fitpc2_wdt.c +++ b/drivers/watchdog/sbc_fitpc2_wdt.c | |||
@@ -27,7 +27,7 @@ | |||
27 | 27 | ||
28 | #include <asm/system.h> | 28 | #include <asm/system.h> |
29 | 29 | ||
30 | static int nowayout = WATCHDOG_NOWAYOUT; | 30 | static bool nowayout = WATCHDOG_NOWAYOUT; |
31 | static unsigned int margin = 60; /* (secs) Default is 1 minute */ | 31 | static unsigned int margin = 60; /* (secs) Default is 1 minute */ |
32 | static unsigned long wdt_status; | 32 | static unsigned long wdt_status; |
33 | static DEFINE_MUTEX(wdt_lock); | 33 | static DEFINE_MUTEX(wdt_lock); |
@@ -260,7 +260,7 @@ MODULE_DESCRIPTION("SBC-FITPC2 Watchdog"); | |||
260 | module_param(margin, int, 0); | 260 | module_param(margin, int, 0); |
261 | MODULE_PARM_DESC(margin, "Watchdog margin in seconds (default 60s)"); | 261 | MODULE_PARM_DESC(margin, "Watchdog margin in seconds (default 60s)"); |
262 | 262 | ||
263 | module_param(nowayout, int, 0); | 263 | module_param(nowayout, bool, 0); |
264 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started"); | 264 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started"); |
265 | 265 | ||
266 | MODULE_LICENSE("GPL"); | 266 | MODULE_LICENSE("GPL"); |
diff --git a/drivers/watchdog/sc1200wdt.c b/drivers/watchdog/sc1200wdt.c index 0698b3d794ea..3fb83b0c28c2 100644 --- a/drivers/watchdog/sc1200wdt.c +++ b/drivers/watchdog/sc1200wdt.c | |||
@@ -93,8 +93,8 @@ MODULE_PARM_DESC(io, "io port"); | |||
93 | module_param(timeout, int, 0); | 93 | module_param(timeout, int, 0); |
94 | MODULE_PARM_DESC(timeout, "range is 0-255 minutes, default is 1"); | 94 | MODULE_PARM_DESC(timeout, "range is 0-255 minutes, default is 1"); |
95 | 95 | ||
96 | static int nowayout = WATCHDOG_NOWAYOUT; | 96 | static bool nowayout = WATCHDOG_NOWAYOUT; |
97 | module_param(nowayout, int, 0); | 97 | module_param(nowayout, bool, 0); |
98 | MODULE_PARM_DESC(nowayout, | 98 | MODULE_PARM_DESC(nowayout, |
99 | "Watchdog cannot be stopped once started (default=" | 99 | "Watchdog cannot be stopped once started (default=" |
100 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 100 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
diff --git a/drivers/watchdog/sc520_wdt.c b/drivers/watchdog/sc520_wdt.c index e975b3354381..d1ef58579a37 100644 --- a/drivers/watchdog/sc520_wdt.c +++ b/drivers/watchdog/sc520_wdt.c | |||
@@ -97,8 +97,8 @@ MODULE_PARM_DESC(timeout, | |||
97 | "Watchdog timeout in seconds. (1 <= timeout <= 3600, default=" | 97 | "Watchdog timeout in seconds. (1 <= timeout <= 3600, default=" |
98 | __MODULE_STRING(WATCHDOG_TIMEOUT) ")"); | 98 | __MODULE_STRING(WATCHDOG_TIMEOUT) ")"); |
99 | 99 | ||
100 | static int nowayout = WATCHDOG_NOWAYOUT; | 100 | static bool nowayout = WATCHDOG_NOWAYOUT; |
101 | module_param(nowayout, int, 0); | 101 | module_param(nowayout, bool, 0); |
102 | MODULE_PARM_DESC(nowayout, | 102 | MODULE_PARM_DESC(nowayout, |
103 | "Watchdog cannot be stopped once started (default=" | 103 | "Watchdog cannot be stopped once started (default=" |
104 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 104 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
diff --git a/drivers/watchdog/sch311x_wdt.c b/drivers/watchdog/sch311x_wdt.c index 1702c3e9bce3..bd86f32d63ab 100644 --- a/drivers/watchdog/sch311x_wdt.c +++ b/drivers/watchdog/sch311x_wdt.c | |||
@@ -80,8 +80,8 @@ MODULE_PARM_DESC(timeout, | |||
80 | "Watchdog timeout in seconds. 1<= timeout <=15300, default=" | 80 | "Watchdog timeout in seconds. 1<= timeout <=15300, default=" |
81 | __MODULE_STRING(WATCHDOG_TIMEOUT) "."); | 81 | __MODULE_STRING(WATCHDOG_TIMEOUT) "."); |
82 | 82 | ||
83 | static int nowayout = WATCHDOG_NOWAYOUT; | 83 | static bool nowayout = WATCHDOG_NOWAYOUT; |
84 | module_param(nowayout, int, 0); | 84 | module_param(nowayout, bool, 0); |
85 | MODULE_PARM_DESC(nowayout, | 85 | MODULE_PARM_DESC(nowayout, |
86 | "Watchdog cannot be stopped once started (default=" | 86 | "Watchdog cannot be stopped once started (default=" |
87 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 87 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
diff --git a/drivers/watchdog/scx200_wdt.c b/drivers/watchdog/scx200_wdt.c index 35ada2e90664..8ae7c282d465 100644 --- a/drivers/watchdog/scx200_wdt.c +++ b/drivers/watchdog/scx200_wdt.c | |||
@@ -43,8 +43,8 @@ static int margin = 60; /* in seconds */ | |||
43 | module_param(margin, int, 0); | 43 | module_param(margin, int, 0); |
44 | MODULE_PARM_DESC(margin, "Watchdog margin in seconds"); | 44 | MODULE_PARM_DESC(margin, "Watchdog margin in seconds"); |
45 | 45 | ||
46 | static int nowayout = WATCHDOG_NOWAYOUT; | 46 | static bool nowayout = WATCHDOG_NOWAYOUT; |
47 | module_param(nowayout, int, 0); | 47 | module_param(nowayout, bool, 0); |
48 | MODULE_PARM_DESC(nowayout, "Disable watchdog shutdown on close"); | 48 | MODULE_PARM_DESC(nowayout, "Disable watchdog shutdown on close"); |
49 | 49 | ||
50 | static u16 wdto_restart; | 50 | static u16 wdto_restart; |
diff --git a/drivers/watchdog/shwdt.c b/drivers/watchdog/shwdt.c index 75bd23926476..93958a7763e6 100644 --- a/drivers/watchdog/shwdt.c +++ b/drivers/watchdog/shwdt.c | |||
@@ -75,7 +75,7 @@ static DEFINE_SPINLOCK(shwdt_lock); | |||
75 | 75 | ||
76 | #define WATCHDOG_HEARTBEAT 30 /* 30 sec default heartbeat */ | 76 | #define WATCHDOG_HEARTBEAT 30 /* 30 sec default heartbeat */ |
77 | static int heartbeat = WATCHDOG_HEARTBEAT; /* in seconds */ | 77 | static int heartbeat = WATCHDOG_HEARTBEAT; /* in seconds */ |
78 | static int nowayout = WATCHDOG_NOWAYOUT; | 78 | static bool nowayout = WATCHDOG_NOWAYOUT; |
79 | static unsigned long next_heartbeat; | 79 | static unsigned long next_heartbeat; |
80 | 80 | ||
81 | struct sh_wdt { | 81 | struct sh_wdt { |
@@ -484,7 +484,7 @@ MODULE_PARM_DESC(heartbeat, | |||
484 | "Watchdog heartbeat in seconds. (1 <= heartbeat <= 3600, default=" | 484 | "Watchdog heartbeat in seconds. (1 <= heartbeat <= 3600, default=" |
485 | __MODULE_STRING(WATCHDOG_HEARTBEAT) ")"); | 485 | __MODULE_STRING(WATCHDOG_HEARTBEAT) ")"); |
486 | 486 | ||
487 | module_param(nowayout, int, 0); | 487 | module_param(nowayout, bool, 0); |
488 | MODULE_PARM_DESC(nowayout, | 488 | MODULE_PARM_DESC(nowayout, |
489 | "Watchdog cannot be stopped once started (default=" | 489 | "Watchdog cannot be stopped once started (default=" |
490 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 490 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
diff --git a/drivers/watchdog/smsc37b787_wdt.c b/drivers/watchdog/smsc37b787_wdt.c index 5e4d3734b516..4c3400574ada 100644 --- a/drivers/watchdog/smsc37b787_wdt.c +++ b/drivers/watchdog/smsc37b787_wdt.c | |||
@@ -86,7 +86,7 @@ static char expect_close; /* is the close expected? */ | |||
86 | 86 | ||
87 | static DEFINE_SPINLOCK(io_lock);/* to guard the watchdog from io races */ | 87 | static DEFINE_SPINLOCK(io_lock);/* to guard the watchdog from io races */ |
88 | 88 | ||
89 | static int nowayout = WATCHDOG_NOWAYOUT; | 89 | static bool nowayout = WATCHDOG_NOWAYOUT; |
90 | 90 | ||
91 | /* -- Low level function ----------------------------------------*/ | 91 | /* -- Low level function ----------------------------------------*/ |
92 | 92 | ||
@@ -615,7 +615,7 @@ MODULE_PARM_DESC(unit, | |||
615 | module_param(timeout, int, 0); | 615 | module_param(timeout, int, 0); |
616 | MODULE_PARM_DESC(timeout, "range is 1-255 units, default is 60"); | 616 | MODULE_PARM_DESC(timeout, "range is 1-255 units, default is 60"); |
617 | 617 | ||
618 | module_param(nowayout, int, 0); | 618 | module_param(nowayout, bool, 0); |
619 | MODULE_PARM_DESC(nowayout, | 619 | MODULE_PARM_DESC(nowayout, |
620 | "Watchdog cannot be stopped once started (default=" | 620 | "Watchdog cannot be stopped once started (default=" |
621 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 621 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
diff --git a/drivers/watchdog/softdog.c b/drivers/watchdog/softdog.c index a1adc8c87832..da8620f829b2 100644 --- a/drivers/watchdog/softdog.c +++ b/drivers/watchdog/softdog.c | |||
@@ -59,8 +59,8 @@ MODULE_PARM_DESC(soft_margin, | |||
59 | "Watchdog soft_margin in seconds. (0 < soft_margin < 65536, default=" | 59 | "Watchdog soft_margin in seconds. (0 < soft_margin < 65536, default=" |
60 | __MODULE_STRING(TIMER_MARGIN) ")"); | 60 | __MODULE_STRING(TIMER_MARGIN) ")"); |
61 | 61 | ||
62 | static int nowayout = WATCHDOG_NOWAYOUT; | 62 | static bool nowayout = WATCHDOG_NOWAYOUT; |
63 | module_param(nowayout, int, 0); | 63 | module_param(nowayout, bool, 0); |
64 | MODULE_PARM_DESC(nowayout, | 64 | MODULE_PARM_DESC(nowayout, |
65 | "Watchdog cannot be stopped once started (default=" | 65 | "Watchdog cannot be stopped once started (default=" |
66 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 66 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
diff --git a/drivers/watchdog/sp5100_tco.c b/drivers/watchdog/sp5100_tco.c index 954a7b6334c4..59108e48ada3 100644 --- a/drivers/watchdog/sp5100_tco.c +++ b/drivers/watchdog/sp5100_tco.c | |||
@@ -62,8 +62,8 @@ module_param(heartbeat, int, 0); | |||
62 | MODULE_PARM_DESC(heartbeat, "Watchdog heartbeat in seconds. (default=" | 62 | MODULE_PARM_DESC(heartbeat, "Watchdog heartbeat in seconds. (default=" |
63 | __MODULE_STRING(WATCHDOG_HEARTBEAT) ")"); | 63 | __MODULE_STRING(WATCHDOG_HEARTBEAT) ")"); |
64 | 64 | ||
65 | static int nowayout = WATCHDOG_NOWAYOUT; | 65 | static bool nowayout = WATCHDOG_NOWAYOUT; |
66 | module_param(nowayout, int, 0); | 66 | module_param(nowayout, bool, 0); |
67 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started" | 67 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started" |
68 | " (default=" __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 68 | " (default=" __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
69 | 69 | ||
diff --git a/drivers/watchdog/sp805_wdt.c b/drivers/watchdog/sp805_wdt.c index 2b0939ab61da..49b615a29c4c 100644 --- a/drivers/watchdog/sp805_wdt.c +++ b/drivers/watchdog/sp805_wdt.c | |||
@@ -79,7 +79,7 @@ struct sp805_wdt { | |||
79 | 79 | ||
80 | /* local variables */ | 80 | /* local variables */ |
81 | static struct sp805_wdt *wdt; | 81 | static struct sp805_wdt *wdt; |
82 | static int nowayout = WATCHDOG_NOWAYOUT; | 82 | static bool nowayout = WATCHDOG_NOWAYOUT; |
83 | 83 | ||
84 | /* This routine finds load value that will reset system in required timout */ | 84 | /* This routine finds load value that will reset system in required timout */ |
85 | static void wdt_setload(unsigned int timeout) | 85 | static void wdt_setload(unsigned int timeout) |
@@ -405,7 +405,7 @@ static struct amba_driver sp805_wdt_driver = { | |||
405 | 405 | ||
406 | module_amba_driver(sp805_wdt_driver); | 406 | module_amba_driver(sp805_wdt_driver); |
407 | 407 | ||
408 | module_param(nowayout, int, 0); | 408 | module_param(nowayout, bool, 0); |
409 | MODULE_PARM_DESC(nowayout, | 409 | MODULE_PARM_DESC(nowayout, |
410 | "Set to 1 to keep watchdog running after device release"); | 410 | "Set to 1 to keep watchdog running after device release"); |
411 | 411 | ||
diff --git a/drivers/watchdog/stmp3xxx_wdt.c b/drivers/watchdog/stmp3xxx_wdt.c index 180941375cec..21d96b92bfd7 100644 --- a/drivers/watchdog/stmp3xxx_wdt.c +++ b/drivers/watchdog/stmp3xxx_wdt.c | |||
@@ -35,7 +35,7 @@ | |||
35 | 35 | ||
36 | static DEFINE_SPINLOCK(stmp3xxx_wdt_io_lock); | 36 | static DEFINE_SPINLOCK(stmp3xxx_wdt_io_lock); |
37 | static unsigned long wdt_status; | 37 | static unsigned long wdt_status; |
38 | static const int nowayout = WATCHDOG_NOWAYOUT; | 38 | static const bool nowayout = WATCHDOG_NOWAYOUT; |
39 | static int heartbeat = DEFAULT_HEARTBEAT; | 39 | static int heartbeat = DEFAULT_HEARTBEAT; |
40 | static unsigned long boot_status; | 40 | static unsigned long boot_status; |
41 | 41 | ||
diff --git a/drivers/watchdog/ts72xx_wdt.c b/drivers/watchdog/ts72xx_wdt.c index 1490293dc7da..8df050d800e6 100644 --- a/drivers/watchdog/ts72xx_wdt.c +++ b/drivers/watchdog/ts72xx_wdt.c | |||
@@ -34,8 +34,8 @@ MODULE_PARM_DESC(timeout, "Watchdog timeout in seconds. " | |||
34 | __MODULE_STRING(TS72XX_WDT_DEFAULT_TIMEOUT) | 34 | __MODULE_STRING(TS72XX_WDT_DEFAULT_TIMEOUT) |
35 | ")"); | 35 | ")"); |
36 | 36 | ||
37 | static int nowayout = WATCHDOG_NOWAYOUT; | 37 | static bool nowayout = WATCHDOG_NOWAYOUT; |
38 | module_param(nowayout, int, 0); | 38 | module_param(nowayout, bool, 0); |
39 | MODULE_PARM_DESC(nowayout, "Disable watchdog shutdown on close"); | 39 | MODULE_PARM_DESC(nowayout, "Disable watchdog shutdown on close"); |
40 | 40 | ||
41 | /** | 41 | /** |
diff --git a/drivers/watchdog/twl4030_wdt.c b/drivers/watchdog/twl4030_wdt.c index 0764c6239b98..249f11305d26 100644 --- a/drivers/watchdog/twl4030_wdt.c +++ b/drivers/watchdog/twl4030_wdt.c | |||
@@ -42,8 +42,8 @@ struct twl4030_wdt { | |||
42 | unsigned long state; | 42 | unsigned long state; |
43 | }; | 43 | }; |
44 | 44 | ||
45 | static int nowayout = WATCHDOG_NOWAYOUT; | 45 | static bool nowayout = WATCHDOG_NOWAYOUT; |
46 | module_param(nowayout, int, 0); | 46 | module_param(nowayout, bool, 0); |
47 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started " | 47 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started " |
48 | "(default=" __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 48 | "(default=" __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
49 | 49 | ||
diff --git a/drivers/watchdog/txx9wdt.c b/drivers/watchdog/txx9wdt.c index 99204a808698..d02804ccd280 100644 --- a/drivers/watchdog/txx9wdt.c +++ b/drivers/watchdog/txx9wdt.c | |||
@@ -33,8 +33,8 @@ MODULE_PARM_DESC(timeout, | |||
33 | "(0<timeout<((2^" __MODULE_STRING(TXX9_TIMER_BITS) ")/(IMCLK/256)), " | 33 | "(0<timeout<((2^" __MODULE_STRING(TXX9_TIMER_BITS) ")/(IMCLK/256)), " |
34 | "default=" __MODULE_STRING(TIMER_MARGIN) ")"); | 34 | "default=" __MODULE_STRING(TIMER_MARGIN) ")"); |
35 | 35 | ||
36 | static int nowayout = WATCHDOG_NOWAYOUT; | 36 | static bool nowayout = WATCHDOG_NOWAYOUT; |
37 | module_param(nowayout, int, 0); | 37 | module_param(nowayout, bool, 0); |
38 | MODULE_PARM_DESC(nowayout, | 38 | MODULE_PARM_DESC(nowayout, |
39 | "Watchdog cannot be stopped once started " | 39 | "Watchdog cannot be stopped once started " |
40 | "(default=" __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 40 | "(default=" __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
diff --git a/drivers/watchdog/via_wdt.c b/drivers/watchdog/via_wdt.c index bacbbc9e7443..ef83f0242411 100644 --- a/drivers/watchdog/via_wdt.c +++ b/drivers/watchdog/via_wdt.c | |||
@@ -58,8 +58,8 @@ module_param(timeout, int, 0); | |||
58 | MODULE_PARM_DESC(timeout, "Watchdog timeout in seconds, between 1 and 1023 " | 58 | MODULE_PARM_DESC(timeout, "Watchdog timeout in seconds, between 1 and 1023 " |
59 | "(default = " __MODULE_STRING(WDT_TIMEOUT) ")"); | 59 | "(default = " __MODULE_STRING(WDT_TIMEOUT) ")"); |
60 | 60 | ||
61 | static int nowayout = WATCHDOG_NOWAYOUT; | 61 | static bool nowayout = WATCHDOG_NOWAYOUT; |
62 | module_param(nowayout, int, 0); | 62 | module_param(nowayout, bool, 0); |
63 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started " | 63 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started " |
64 | "(default = " __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 64 | "(default = " __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
65 | 65 | ||
diff --git a/drivers/watchdog/w83627hf_wdt.c b/drivers/watchdog/w83627hf_wdt.c index 969358732841..452980361c63 100644 --- a/drivers/watchdog/w83627hf_wdt.c +++ b/drivers/watchdog/w83627hf_wdt.c | |||
@@ -62,8 +62,8 @@ MODULE_PARM_DESC(timeout, | |||
62 | "Watchdog timeout in seconds. 1 <= timeout <= 255, default=" | 62 | "Watchdog timeout in seconds. 1 <= timeout <= 255, default=" |
63 | __MODULE_STRING(WATCHDOG_TIMEOUT) "."); | 63 | __MODULE_STRING(WATCHDOG_TIMEOUT) "."); |
64 | 64 | ||
65 | static int nowayout = WATCHDOG_NOWAYOUT; | 65 | static bool nowayout = WATCHDOG_NOWAYOUT; |
66 | module_param(nowayout, int, 0); | 66 | module_param(nowayout, bool, 0); |
67 | MODULE_PARM_DESC(nowayout, | 67 | MODULE_PARM_DESC(nowayout, |
68 | "Watchdog cannot be stopped once started (default=" | 68 | "Watchdog cannot be stopped once started (default=" |
69 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 69 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
diff --git a/drivers/watchdog/w83697hf_wdt.c b/drivers/watchdog/w83697hf_wdt.c index 23074184c214..f5c9d9901acc 100644 --- a/drivers/watchdog/w83697hf_wdt.c +++ b/drivers/watchdog/w83697hf_wdt.c | |||
@@ -63,8 +63,8 @@ MODULE_PARM_DESC(timeout, | |||
63 | "Watchdog timeout in seconds. 1<= timeout <=255 (default=" | 63 | "Watchdog timeout in seconds. 1<= timeout <=255 (default=" |
64 | __MODULE_STRING(WATCHDOG_TIMEOUT) ")"); | 64 | __MODULE_STRING(WATCHDOG_TIMEOUT) ")"); |
65 | 65 | ||
66 | static int nowayout = WATCHDOG_NOWAYOUT; | 66 | static bool nowayout = WATCHDOG_NOWAYOUT; |
67 | module_param(nowayout, int, 0); | 67 | module_param(nowayout, bool, 0); |
68 | MODULE_PARM_DESC(nowayout, | 68 | MODULE_PARM_DESC(nowayout, |
69 | "Watchdog cannot be stopped once started (default=" | 69 | "Watchdog cannot be stopped once started (default=" |
70 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 70 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
diff --git a/drivers/watchdog/w83697ug_wdt.c b/drivers/watchdog/w83697ug_wdt.c index 025736bacf5f..ab45bfdf935c 100644 --- a/drivers/watchdog/w83697ug_wdt.c +++ b/drivers/watchdog/w83697ug_wdt.c | |||
@@ -65,8 +65,8 @@ MODULE_PARM_DESC(timeout, | |||
65 | "Watchdog timeout in seconds. 1<= timeout <=255 (default=" | 65 | "Watchdog timeout in seconds. 1<= timeout <=255 (default=" |
66 | __MODULE_STRING(WATCHDOG_TIMEOUT) ")"); | 66 | __MODULE_STRING(WATCHDOG_TIMEOUT) ")"); |
67 | 67 | ||
68 | static int nowayout = WATCHDOG_NOWAYOUT; | 68 | static bool nowayout = WATCHDOG_NOWAYOUT; |
69 | module_param(nowayout, int, 0); | 69 | module_param(nowayout, bool, 0); |
70 | MODULE_PARM_DESC(nowayout, | 70 | MODULE_PARM_DESC(nowayout, |
71 | "Watchdog cannot be stopped once started (default=" | 71 | "Watchdog cannot be stopped once started (default=" |
72 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 72 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
diff --git a/drivers/watchdog/w83877f_wdt.c b/drivers/watchdog/w83877f_wdt.c index d761414de809..e76e7e309301 100644 --- a/drivers/watchdog/w83877f_wdt.c +++ b/drivers/watchdog/w83877f_wdt.c | |||
@@ -92,8 +92,8 @@ MODULE_PARM_DESC(timeout, | |||
92 | __MODULE_STRING(WATCHDOG_TIMEOUT) ")"); | 92 | __MODULE_STRING(WATCHDOG_TIMEOUT) ")"); |
93 | 93 | ||
94 | 94 | ||
95 | static int nowayout = WATCHDOG_NOWAYOUT; | 95 | static bool nowayout = WATCHDOG_NOWAYOUT; |
96 | module_param(nowayout, int, 0); | 96 | module_param(nowayout, bool, 0); |
97 | MODULE_PARM_DESC(nowayout, | 97 | MODULE_PARM_DESC(nowayout, |
98 | "Watchdog cannot be stopped once started (default=" | 98 | "Watchdog cannot be stopped once started (default=" |
99 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 99 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
diff --git a/drivers/watchdog/w83977f_wdt.c b/drivers/watchdog/w83977f_wdt.c index d301b1bf1664..56bfded1f361 100644 --- a/drivers/watchdog/w83977f_wdt.c +++ b/drivers/watchdog/w83977f_wdt.c | |||
@@ -59,8 +59,8 @@ MODULE_PARM_DESC(timeout, | |||
59 | module_param(testmode, int, 0); | 59 | module_param(testmode, int, 0); |
60 | MODULE_PARM_DESC(testmode, "Watchdog testmode (1 = no reboot), default=0"); | 60 | MODULE_PARM_DESC(testmode, "Watchdog testmode (1 = no reboot), default=0"); |
61 | 61 | ||
62 | static int nowayout = WATCHDOG_NOWAYOUT; | 62 | static bool nowayout = WATCHDOG_NOWAYOUT; |
63 | module_param(nowayout, int, 0); | 63 | module_param(nowayout, bool, 0); |
64 | MODULE_PARM_DESC(nowayout, | 64 | MODULE_PARM_DESC(nowayout, |
65 | "Watchdog cannot be stopped once started (default=" | 65 | "Watchdog cannot be stopped once started (default=" |
66 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 66 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
diff --git a/drivers/watchdog/wafer5823wdt.c b/drivers/watchdog/wafer5823wdt.c index 1dea144017e5..25aba6e00a23 100644 --- a/drivers/watchdog/wafer5823wdt.c +++ b/drivers/watchdog/wafer5823wdt.c | |||
@@ -67,8 +67,8 @@ MODULE_PARM_DESC(timeout, | |||
67 | "Watchdog timeout in seconds. 1 <= timeout <= 255, default=" | 67 | "Watchdog timeout in seconds. 1 <= timeout <= 255, default=" |
68 | __MODULE_STRING(WD_TIMO) "."); | 68 | __MODULE_STRING(WD_TIMO) "."); |
69 | 69 | ||
70 | static int nowayout = WATCHDOG_NOWAYOUT; | 70 | static bool nowayout = WATCHDOG_NOWAYOUT; |
71 | module_param(nowayout, int, 0); | 71 | module_param(nowayout, bool, 0); |
72 | MODULE_PARM_DESC(nowayout, | 72 | MODULE_PARM_DESC(nowayout, |
73 | "Watchdog cannot be stopped once started (default=" | 73 | "Watchdog cannot be stopped once started (default=" |
74 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 74 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
diff --git a/drivers/watchdog/wdrtas.c b/drivers/watchdog/wdrtas.c index b7b34600f9a0..0a77655cda60 100644 --- a/drivers/watchdog/wdrtas.c +++ b/drivers/watchdog/wdrtas.c | |||
@@ -51,7 +51,7 @@ MODULE_LICENSE("GPL"); | |||
51 | MODULE_ALIAS_MISCDEV(WATCHDOG_MINOR); | 51 | MODULE_ALIAS_MISCDEV(WATCHDOG_MINOR); |
52 | MODULE_ALIAS_MISCDEV(TEMP_MINOR); | 52 | MODULE_ALIAS_MISCDEV(TEMP_MINOR); |
53 | 53 | ||
54 | static int wdrtas_nowayout = WATCHDOG_NOWAYOUT; | 54 | static bool wdrtas_nowayout = WATCHDOG_NOWAYOUT; |
55 | static atomic_t wdrtas_miscdev_open = ATOMIC_INIT(0); | 55 | static atomic_t wdrtas_miscdev_open = ATOMIC_INIT(0); |
56 | static char wdrtas_expect_close; | 56 | static char wdrtas_expect_close; |
57 | 57 | ||
diff --git a/drivers/watchdog/wdt.c b/drivers/watchdog/wdt.c index 4ef6702fff82..64079d933c63 100644 --- a/drivers/watchdog/wdt.c +++ b/drivers/watchdog/wdt.c | |||
@@ -67,8 +67,8 @@ MODULE_PARM_DESC(heartbeat, | |||
67 | "Watchdog heartbeat in seconds. (0 < heartbeat < 65536, default=" | 67 | "Watchdog heartbeat in seconds. (0 < heartbeat < 65536, default=" |
68 | __MODULE_STRING(WD_TIMO) ")"); | 68 | __MODULE_STRING(WD_TIMO) ")"); |
69 | 69 | ||
70 | static int nowayout = WATCHDOG_NOWAYOUT; | 70 | static bool nowayout = WATCHDOG_NOWAYOUT; |
71 | module_param(nowayout, int, 0); | 71 | module_param(nowayout, bool, 0); |
72 | MODULE_PARM_DESC(nowayout, | 72 | MODULE_PARM_DESC(nowayout, |
73 | "Watchdog cannot be stopped once started (default=" | 73 | "Watchdog cannot be stopped once started (default=" |
74 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 74 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
diff --git a/drivers/watchdog/wdt977.c b/drivers/watchdog/wdt977.c index cfb0a8cd7f12..2de1632708a0 100644 --- a/drivers/watchdog/wdt977.c +++ b/drivers/watchdog/wdt977.c | |||
@@ -68,8 +68,8 @@ MODULE_PARM_DESC(timeout, "Watchdog timeout in seconds (60..15300, default=" | |||
68 | module_param(testmode, int, 0); | 68 | module_param(testmode, int, 0); |
69 | MODULE_PARM_DESC(testmode, "Watchdog testmode (1 = no reboot), default=0"); | 69 | MODULE_PARM_DESC(testmode, "Watchdog testmode (1 = no reboot), default=0"); |
70 | 70 | ||
71 | static int nowayout = WATCHDOG_NOWAYOUT; | 71 | static bool nowayout = WATCHDOG_NOWAYOUT; |
72 | module_param(nowayout, int, 0); | 72 | module_param(nowayout, bool, 0); |
73 | MODULE_PARM_DESC(nowayout, | 73 | MODULE_PARM_DESC(nowayout, |
74 | "Watchdog cannot be stopped once started (default=" | 74 | "Watchdog cannot be stopped once started (default=" |
75 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 75 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
diff --git a/drivers/watchdog/wdt_pci.c b/drivers/watchdog/wdt_pci.c index c099b6fcdf40..a3cea594c8f2 100644 --- a/drivers/watchdog/wdt_pci.c +++ b/drivers/watchdog/wdt_pci.c | |||
@@ -80,8 +80,8 @@ MODULE_PARM_DESC(heartbeat, | |||
80 | "Watchdog heartbeat in seconds. (0<heartbeat<65536, default=" | 80 | "Watchdog heartbeat in seconds. (0<heartbeat<65536, default=" |
81 | __MODULE_STRING(WD_TIMO) ")"); | 81 | __MODULE_STRING(WD_TIMO) ")"); |
82 | 82 | ||
83 | static int nowayout = WATCHDOG_NOWAYOUT; | 83 | static bool nowayout = WATCHDOG_NOWAYOUT; |
84 | module_param(nowayout, int, 0); | 84 | module_param(nowayout, bool, 0); |
85 | MODULE_PARM_DESC(nowayout, | 85 | MODULE_PARM_DESC(nowayout, |
86 | "Watchdog cannot be stopped once started (default=" | 86 | "Watchdog cannot be stopped once started (default=" |
87 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 87 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
diff --git a/drivers/watchdog/wm831x_wdt.c b/drivers/watchdog/wm831x_wdt.c index 263c883f0806..b3e8a62f27a9 100644 --- a/drivers/watchdog/wm831x_wdt.c +++ b/drivers/watchdog/wm831x_wdt.c | |||
@@ -22,8 +22,8 @@ | |||
22 | #include <linux/mfd/wm831x/pdata.h> | 22 | #include <linux/mfd/wm831x/pdata.h> |
23 | #include <linux/mfd/wm831x/watchdog.h> | 23 | #include <linux/mfd/wm831x/watchdog.h> |
24 | 24 | ||
25 | static int nowayout = WATCHDOG_NOWAYOUT; | 25 | static bool nowayout = WATCHDOG_NOWAYOUT; |
26 | module_param(nowayout, int, 0); | 26 | module_param(nowayout, bool, 0); |
27 | MODULE_PARM_DESC(nowayout, | 27 | MODULE_PARM_DESC(nowayout, |
28 | "Watchdog cannot be stopped once started (default=" | 28 | "Watchdog cannot be stopped once started (default=" |
29 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 29 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
diff --git a/drivers/watchdog/wm8350_wdt.c b/drivers/watchdog/wm8350_wdt.c index f18499eaeaa7..cdd2efc6d6b1 100644 --- a/drivers/watchdog/wm8350_wdt.c +++ b/drivers/watchdog/wm8350_wdt.c | |||
@@ -21,8 +21,8 @@ | |||
21 | #include <linux/uaccess.h> | 21 | #include <linux/uaccess.h> |
22 | #include <linux/mfd/wm8350/core.h> | 22 | #include <linux/mfd/wm8350/core.h> |
23 | 23 | ||
24 | static int nowayout = WATCHDOG_NOWAYOUT; | 24 | static bool nowayout = WATCHDOG_NOWAYOUT; |
25 | module_param(nowayout, int, 0); | 25 | module_param(nowayout, bool, 0); |
26 | MODULE_PARM_DESC(nowayout, | 26 | MODULE_PARM_DESC(nowayout, |
27 | "Watchdog cannot be stopped once started (default=" | 27 | "Watchdog cannot be stopped once started (default=" |
28 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 28 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |