diff options
-rw-r--r-- | drivers/watchdog/alim7101_wdt.c | 15 | ||||
-rw-r--r-- | drivers/watchdog/at91rm9200_wdt.c | 3 | ||||
-rw-r--r-- | drivers/watchdog/bfin_wdt.c | 14 | ||||
-rw-r--r-- | drivers/watchdog/cpwd.c | 6 | ||||
-rw-r--r-- | drivers/watchdog/ks8695_wdt.c | 4 | ||||
-rw-r--r-- | drivers/watchdog/machzwd.c | 9 | ||||
-rw-r--r-- | drivers/watchdog/mpcore_wdt.c | 7 | ||||
-rw-r--r-- | drivers/watchdog/s3c2410_wdt.c | 32 | ||||
-rw-r--r-- | drivers/watchdog/sb_wdog.c | 7 | ||||
-rw-r--r-- | drivers/watchdog/sbc60xxwdt.c | 5 | ||||
-rw-r--r-- | drivers/watchdog/sbc8360.c | 4 | ||||
-rw-r--r-- | drivers/watchdog/sbc_epx_c3.c | 9 | ||||
-rw-r--r-- | drivers/watchdog/scx200_wdt.c | 4 | ||||
-rw-r--r-- | drivers/watchdog/shwdt.c | 4 | ||||
-rw-r--r-- | drivers/watchdog/softdog.c | 7 | ||||
-rw-r--r-- | drivers/watchdog/w83697hf_wdt.c | 3 | ||||
-rw-r--r-- | drivers/watchdog/wdrtas.c | 7 |
17 files changed, 82 insertions, 58 deletions
diff --git a/drivers/watchdog/alim7101_wdt.c b/drivers/watchdog/alim7101_wdt.c index 90f98df5f106..f90afdb1b255 100644 --- a/drivers/watchdog/alim7101_wdt.c +++ b/drivers/watchdog/alim7101_wdt.c | |||
@@ -322,7 +322,8 @@ static int wdt_notify_sys(struct notifier_block *this, | |||
322 | * watchdog on reboot with no heartbeat | 322 | * watchdog on reboot with no heartbeat |
323 | */ | 323 | */ |
324 | wdt_change(WDT_ENABLE); | 324 | wdt_change(WDT_ENABLE); |
325 | printk(KERN_INFO PFX "Watchdog timer is now enabled with no heartbeat - should reboot in ~1 second.\n"); | 325 | printk(KERN_INFO PFX "Watchdog timer is now enabled " |
326 | "with no heartbeat - should reboot in ~1 second.\n"); | ||
326 | } | 327 | } |
327 | return NOTIFY_DONE; | 328 | return NOTIFY_DONE; |
328 | } | 329 | } |
@@ -374,12 +375,17 @@ static int __init alim7101_wdt_init(void) | |||
374 | pci_dev_put(ali1543_south); | 375 | pci_dev_put(ali1543_south); |
375 | if ((tmp & 0x1e) == 0x00) { | 376 | if ((tmp & 0x1e) == 0x00) { |
376 | if (!use_gpio) { | 377 | if (!use_gpio) { |
377 | printk(KERN_INFO PFX "Detected old alim7101 revision 'a1d'. If this is a cobalt board, set the 'use_gpio' module parameter.\n"); | 378 | printk(KERN_INFO PFX |
379 | "Detected old alim7101 revision 'a1d'. " | ||
380 | "If this is a cobalt board, set the 'use_gpio' " | ||
381 | "module parameter.\n"); | ||
378 | goto err_out; | 382 | goto err_out; |
379 | } | 383 | } |
380 | nowayout = 1; | 384 | nowayout = 1; |
381 | } else if ((tmp & 0x1e) != 0x12 && (tmp & 0x1e) != 0x00) { | 385 | } else if ((tmp & 0x1e) != 0x12 && (tmp & 0x1e) != 0x00) { |
382 | printk(KERN_INFO PFX "ALi 1543 South-Bridge does not have the correct revision number (???1001?) - WDT not set\n"); | 386 | printk(KERN_INFO PFX |
387 | "ALi 1543 South-Bridge does not have the correct " | ||
388 | "revision number (???1001?) - WDT not set\n"); | ||
383 | goto err_out; | 389 | goto err_out; |
384 | } | 390 | } |
385 | 391 | ||
@@ -409,7 +415,8 @@ static int __init alim7101_wdt_init(void) | |||
409 | if (nowayout) | 415 | if (nowayout) |
410 | __module_get(THIS_MODULE); | 416 | __module_get(THIS_MODULE); |
411 | 417 | ||
412 | printk(KERN_INFO PFX "WDT driver for ALi M7101 initialised. timeout=%d sec (nowayout=%d)\n", | 418 | printk(KERN_INFO PFX "WDT driver for ALi M7101 initialised. " |
419 | "timeout=%d sec (nowayout=%d)\n", | ||
413 | timeout, nowayout); | 420 | timeout, nowayout); |
414 | return 0; | 421 | return 0; |
415 | 422 | ||
diff --git a/drivers/watchdog/at91rm9200_wdt.c b/drivers/watchdog/at91rm9200_wdt.c index 29e52c237a3b..b185dafe1494 100644 --- a/drivers/watchdog/at91rm9200_wdt.c +++ b/drivers/watchdog/at91rm9200_wdt.c | |||
@@ -268,7 +268,8 @@ static int __init at91_wdt_init(void) | |||
268 | if not reset to the default */ | 268 | if not reset to the default */ |
269 | if (at91_wdt_settimeout(wdt_time)) { | 269 | if (at91_wdt_settimeout(wdt_time)) { |
270 | at91_wdt_settimeout(WDT_DEFAULT_TIME); | 270 | at91_wdt_settimeout(WDT_DEFAULT_TIME); |
271 | pr_info("at91_wdt: wdt_time value must be 1 <= wdt_time <= 256, using %d\n", wdt_time); | 271 | pr_info("at91_wdt: wdt_time value must be 1 <= wdt_time <= 256" |
272 | ", using %d\n", wdt_time); | ||
272 | } | 273 | } |
273 | 274 | ||
274 | return platform_driver_register(&at91wdt_driver); | 275 | return platform_driver_register(&at91wdt_driver); |
diff --git a/drivers/watchdog/bfin_wdt.c b/drivers/watchdog/bfin_wdt.c index 067a57cb3f82..c7b3f9df2317 100644 --- a/drivers/watchdog/bfin_wdt.c +++ b/drivers/watchdog/bfin_wdt.c | |||
@@ -27,10 +27,15 @@ | |||
27 | #include <linux/uaccess.h> | 27 | #include <linux/uaccess.h> |
28 | #include <asm/blackfin.h> | 28 | #include <asm/blackfin.h> |
29 | 29 | ||
30 | #define stamp(fmt, args...) pr_debug("%s:%i: " fmt "\n", __func__, __LINE__, ## args) | 30 | #define stamp(fmt, args...) \ |
31 | pr_debug("%s:%i: " fmt "\n", __func__, __LINE__, ## args) | ||
31 | #define stampit() stamp("here i am") | 32 | #define stampit() stamp("here i am") |
32 | #define pr_devinit(fmt, args...) ({ static const __devinitconst char __fmt[] = fmt; printk(__fmt, ## args); }) | 33 | #define pr_devinit(fmt, args...) \ |
33 | #define pr_init(fmt, args...) ({ static const __initconst char __fmt[] = fmt; printk(__fmt, ## args); }) | 34 | ({ static const __devinitconst char __fmt[] = fmt; \ |
35 | printk(__fmt, ## args); }) | ||
36 | #define pr_init(fmt, args...) \ | ||
37 | ({ static const __initconst char __fmt[] = fmt; \ | ||
38 | printk(__fmt, ## args); }) | ||
34 | 39 | ||
35 | #define WATCHDOG_NAME "bfin-wdt" | 40 | #define WATCHDOG_NAME "bfin-wdt" |
36 | #define PFX WATCHDOG_NAME ": " | 41 | #define PFX WATCHDOG_NAME ": " |
@@ -476,7 +481,8 @@ static int __init bfin_wdt_init(void) | |||
476 | return ret; | 481 | return ret; |
477 | } | 482 | } |
478 | 483 | ||
479 | bfin_wdt_device = platform_device_register_simple(WATCHDOG_NAME, -1, NULL, 0); | 484 | bfin_wdt_device = platform_device_register_simple(WATCHDOG_NAME, |
485 | -1, NULL, 0); | ||
480 | if (IS_ERR(bfin_wdt_device)) { | 486 | if (IS_ERR(bfin_wdt_device)) { |
481 | pr_init(KERN_ERR PFX "unable to register device\n"); | 487 | pr_init(KERN_ERR PFX "unable to register device\n"); |
482 | platform_driver_unregister(&bfin_wdt_driver); | 488 | platform_driver_unregister(&bfin_wdt_driver); |
diff --git a/drivers/watchdog/cpwd.c b/drivers/watchdog/cpwd.c index 41070e4771a0..081f2955419e 100644 --- a/drivers/watchdog/cpwd.c +++ b/drivers/watchdog/cpwd.c | |||
@@ -154,9 +154,9 @@ static struct cpwd *cpwd_device; | |||
154 | 154 | ||
155 | static struct timer_list cpwd_timer; | 155 | static struct timer_list cpwd_timer; |
156 | 156 | ||
157 | static int wd0_timeout = 0; | 157 | static int wd0_timeout; |
158 | static int wd1_timeout = 0; | 158 | static int wd1_timeout; |
159 | static int wd2_timeout = 0; | 159 | static int wd2_timeout; |
160 | 160 | ||
161 | module_param(wd0_timeout, int, 0); | 161 | module_param(wd0_timeout, int, 0); |
162 | MODULE_PARM_DESC(wd0_timeout, "Default watchdog0 timeout in 1/10secs"); | 162 | MODULE_PARM_DESC(wd0_timeout, "Default watchdog0 timeout in 1/10secs"); |
diff --git a/drivers/watchdog/ks8695_wdt.c b/drivers/watchdog/ks8695_wdt.c index ae3832110acb..00b03eb43bf0 100644 --- a/drivers/watchdog/ks8695_wdt.c +++ b/drivers/watchdog/ks8695_wdt.c | |||
@@ -293,8 +293,8 @@ static int __init ks8695_wdt_init(void) | |||
293 | if not reset to the default */ | 293 | if not reset to the default */ |
294 | if (ks8695_wdt_settimeout(wdt_time)) { | 294 | if (ks8695_wdt_settimeout(wdt_time)) { |
295 | ks8695_wdt_settimeout(WDT_DEFAULT_TIME); | 295 | ks8695_wdt_settimeout(WDT_DEFAULT_TIME); |
296 | pr_info("ks8695_wdt: wdt_time value must be 1 <= wdt_time <= %i, using %d\n", | 296 | pr_info("ks8695_wdt: wdt_time value must be 1 <= wdt_time <= %i" |
297 | wdt_time, WDT_MAX_TIME); | 297 | ", using %d\n", wdt_time, WDT_MAX_TIME); |
298 | } | 298 | } |
299 | return platform_driver_register(&ks8695wdt_driver); | 299 | return platform_driver_register(&ks8695wdt_driver); |
300 | } | 300 | } |
diff --git a/drivers/watchdog/machzwd.c b/drivers/watchdog/machzwd.c index 2dfc27559bf7..b6b3f59ab446 100644 --- a/drivers/watchdog/machzwd.c +++ b/drivers/watchdog/machzwd.c | |||
@@ -118,7 +118,8 @@ static struct watchdog_info zf_info = { | |||
118 | */ | 118 | */ |
119 | static int action; | 119 | static int action; |
120 | module_param(action, int, 0); | 120 | module_param(action, int, 0); |
121 | MODULE_PARM_DESC(action, "after watchdog resets, generate: 0 = RESET(*) 1 = SMI 2 = NMI 3 = SCI"); | 121 | MODULE_PARM_DESC(action, "after watchdog resets, generate: " |
122 | "0 = RESET(*) 1 = SMI 2 = NMI 3 = SCI"); | ||
122 | 123 | ||
123 | static void zf_ping(unsigned long data); | 124 | static void zf_ping(unsigned long data); |
124 | 125 | ||
@@ -142,7 +143,8 @@ static unsigned long next_heartbeat; | |||
142 | #ifndef ZF_DEBUG | 143 | #ifndef ZF_DEBUG |
143 | # define dprintk(format, args...) | 144 | # define dprintk(format, args...) |
144 | #else | 145 | #else |
145 | # define dprintk(format, args...) printk(KERN_DEBUG PFX ":%s:%d: " format, __func__, __LINE__ , ## args) | 146 | # define dprintk(format, args...) printk(KERN_DEBUG PFX |
147 | ":%s:%d: " format, __func__, __LINE__ , ## args) | ||
146 | #endif | 148 | #endif |
147 | 149 | ||
148 | 150 | ||
@@ -340,7 +342,8 @@ static int zf_close(struct inode *inode, struct file *file) | |||
340 | zf_timer_off(); | 342 | zf_timer_off(); |
341 | else { | 343 | else { |
342 | del_timer(&zf_timer); | 344 | del_timer(&zf_timer); |
343 | printk(KERN_ERR PFX ": device file closed unexpectedly. Will not stop the WDT!\n"); | 345 | printk(KERN_ERR PFX ": device file closed unexpectedly. " |
346 | "Will not stop the WDT!\n"); | ||
344 | } | 347 | } |
345 | clear_bit(0, &zf_is_open); | 348 | clear_bit(0, &zf_is_open); |
346 | zf_expect_close = 0; | 349 | zf_expect_close = 0; |
diff --git a/drivers/watchdog/mpcore_wdt.c b/drivers/watchdog/mpcore_wdt.c index 1512ab8b175b..83fa34b214b4 100644 --- a/drivers/watchdog/mpcore_wdt.c +++ b/drivers/watchdog/mpcore_wdt.c | |||
@@ -61,7 +61,9 @@ MODULE_PARM_DESC(nowayout, | |||
61 | #define ONLY_TESTING 0 | 61 | #define ONLY_TESTING 0 |
62 | static int mpcore_noboot = ONLY_TESTING; | 62 | static int mpcore_noboot = ONLY_TESTING; |
63 | module_param(mpcore_noboot, int, 0); | 63 | module_param(mpcore_noboot, int, 0); |
64 | MODULE_PARM_DESC(mpcore_noboot, "MPcore watchdog action, set to 1 to ignore reboots, 0 to reboot (default=" __MODULE_STRING(ONLY_TESTING) ")"); | 64 | MODULE_PARM_DESC(mpcore_noboot, "MPcore watchdog action, " |
65 | "set to 1 to ignore reboots, 0 to reboot (default=" | ||
66 | __MODULE_STRING(ONLY_TESTING) ")"); | ||
65 | 67 | ||
66 | /* | 68 | /* |
67 | * This is the interrupt handler. Note that we only use this | 69 | * This is the interrupt handler. Note that we only use this |
@@ -416,7 +418,8 @@ static struct platform_driver mpcore_wdt_driver = { | |||
416 | }, | 418 | }, |
417 | }; | 419 | }; |
418 | 420 | ||
419 | static char banner[] __initdata = KERN_INFO "MPcore Watchdog Timer: 0.1. mpcore_noboot=%d mpcore_margin=%d sec (nowayout= %d)\n"; | 421 | static char banner[] __initdata = KERN_INFO "MPcore Watchdog Timer: 0.1. " |
422 | "mpcore_noboot=%d mpcore_margin=%d sec (nowayout= %d)\n"; | ||
420 | 423 | ||
421 | static int __init mpcore_wdt_init(void) | 424 | static int __init mpcore_wdt_init(void) |
422 | { | 425 | { |
diff --git a/drivers/watchdog/s3c2410_wdt.c b/drivers/watchdog/s3c2410_wdt.c index e31925ee8346..b57ac6b49147 100644 --- a/drivers/watchdog/s3c2410_wdt.c +++ b/drivers/watchdog/s3c2410_wdt.c | |||
@@ -68,15 +68,10 @@ MODULE_PARM_DESC(tmr_atboot, | |||
68 | __MODULE_STRING(CONFIG_S3C2410_WATCHDOG_ATBOOT)); | 68 | __MODULE_STRING(CONFIG_S3C2410_WATCHDOG_ATBOOT)); |
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 | MODULE_PARM_DESC(soft_noboot, "Watchdog action, set to 1 to ignore reboots, 0 to reboot (default depends on ONLY_TESTING)"); | 71 | MODULE_PARM_DESC(soft_noboot, "Watchdog action, set to 1 to ignore reboots, " |
72 | "0 to reboot (default depends on ONLY_TESTING)"); | ||
72 | MODULE_PARM_DESC(debug, "Watchdog debug, set to >1 for debug, (default 0)"); | 73 | MODULE_PARM_DESC(debug, "Watchdog debug, set to >1 for debug, (default 0)"); |
73 | 74 | ||
74 | |||
75 | typedef enum close_state { | ||
76 | CLOSE_STATE_NOT, | ||
77 | CLOSE_STATE_ALLOW = 0x4021 | ||
78 | } close_state_t; | ||
79 | |||
80 | static unsigned long open_lock; | 75 | static unsigned long open_lock; |
81 | static struct device *wdt_dev; /* platform device attached to */ | 76 | static struct device *wdt_dev; /* platform device attached to */ |
82 | static struct resource *wdt_mem; | 77 | static struct resource *wdt_mem; |
@@ -84,7 +79,7 @@ static struct resource *wdt_irq; | |||
84 | static struct clk *wdt_clock; | 79 | static struct clk *wdt_clock; |
85 | static void __iomem *wdt_base; | 80 | static void __iomem *wdt_base; |
86 | static unsigned int wdt_count; | 81 | static unsigned int wdt_count; |
87 | static close_state_t allow_close; | 82 | static char expect_close; |
88 | static DEFINE_SPINLOCK(wdt_lock); | 83 | static DEFINE_SPINLOCK(wdt_lock); |
89 | 84 | ||
90 | /* watchdog control routines */ | 85 | /* watchdog control routines */ |
@@ -211,7 +206,7 @@ static int s3c2410wdt_open(struct inode *inode, struct file *file) | |||
211 | if (nowayout) | 206 | if (nowayout) |
212 | __module_get(THIS_MODULE); | 207 | __module_get(THIS_MODULE); |
213 | 208 | ||
214 | allow_close = CLOSE_STATE_NOT; | 209 | expect_close = 0; |
215 | 210 | ||
216 | /* start the timer */ | 211 | /* start the timer */ |
217 | s3c2410wdt_start(); | 212 | s3c2410wdt_start(); |
@@ -225,13 +220,13 @@ static int s3c2410wdt_release(struct inode *inode, struct file *file) | |||
225 | * Lock it in if it's a module and we set nowayout | 220 | * Lock it in if it's a module and we set nowayout |
226 | */ | 221 | */ |
227 | 222 | ||
228 | if (allow_close == CLOSE_STATE_ALLOW) | 223 | if (expect_close == 42) |
229 | s3c2410wdt_stop(); | 224 | s3c2410wdt_stop(); |
230 | else { | 225 | else { |
231 | dev_err(wdt_dev, "Unexpected close, not stopping watchdog\n"); | 226 | dev_err(wdt_dev, "Unexpected close, not stopping watchdog\n"); |
232 | s3c2410wdt_keepalive(); | 227 | s3c2410wdt_keepalive(); |
233 | } | 228 | } |
234 | allow_close = CLOSE_STATE_NOT; | 229 | expect_close = 0; |
235 | clear_bit(0, &open_lock); | 230 | clear_bit(0, &open_lock); |
236 | return 0; | 231 | return 0; |
237 | } | 232 | } |
@@ -247,7 +242,7 @@ static ssize_t s3c2410wdt_write(struct file *file, const char __user *data, | |||
247 | size_t i; | 242 | size_t i; |
248 | 243 | ||
249 | /* In case it was set long ago */ | 244 | /* In case it was set long ago */ |
250 | allow_close = CLOSE_STATE_NOT; | 245 | expect_close = 0; |
251 | 246 | ||
252 | for (i = 0; i != len; i++) { | 247 | for (i = 0; i != len; i++) { |
253 | char c; | 248 | char c; |
@@ -255,7 +250,7 @@ static ssize_t s3c2410wdt_write(struct file *file, const char __user *data, | |||
255 | if (get_user(c, data + i)) | 250 | if (get_user(c, data + i)) |
256 | return -EFAULT; | 251 | return -EFAULT; |
257 | if (c == 'V') | 252 | if (c == 'V') |
258 | allow_close = CLOSE_STATE_ALLOW; | 253 | expect_close = 42; |
259 | } | 254 | } |
260 | } | 255 | } |
261 | s3c2410wdt_keepalive(); | 256 | s3c2410wdt_keepalive(); |
@@ -263,7 +258,7 @@ static ssize_t s3c2410wdt_write(struct file *file, const char __user *data, | |||
263 | return len; | 258 | return len; |
264 | } | 259 | } |
265 | 260 | ||
266 | #define OPTIONS WDIOF_SETTIMEOUT | WDIOF_KEEPALIVEPING | WDIOF_MAGICCLOSE | 261 | #define OPTIONS (WDIOF_SETTIMEOUT | WDIOF_KEEPALIVEPING | WDIOF_MAGICCLOSE) |
267 | 262 | ||
268 | static const struct watchdog_info s3c2410_wdt_ident = { | 263 | static const struct watchdog_info s3c2410_wdt_ident = { |
269 | .options = OPTIONS, | 264 | .options = OPTIONS, |
@@ -331,7 +326,7 @@ static irqreturn_t s3c2410wdt_irq(int irqno, void *param) | |||
331 | } | 326 | } |
332 | /* device interface */ | 327 | /* device interface */ |
333 | 328 | ||
334 | static int s3c2410wdt_probe(struct platform_device *pdev) | 329 | static int __devinit s3c2410wdt_probe(struct platform_device *pdev) |
335 | { | 330 | { |
336 | struct resource *res; | 331 | struct resource *res; |
337 | struct device *dev; | 332 | struct device *dev; |
@@ -404,7 +399,8 @@ static int s3c2410wdt_probe(struct platform_device *pdev) | |||
404 | "tmr_margin value out of range, default %d used\n", | 399 | "tmr_margin value out of range, default %d used\n", |
405 | CONFIG_S3C2410_WATCHDOG_DEFAULT_TIME); | 400 | CONFIG_S3C2410_WATCHDOG_DEFAULT_TIME); |
406 | else | 401 | else |
407 | dev_info(dev, "default timer value is out of range, cannot start\n"); | 402 | dev_info(dev, "default timer value is out of range, " |
403 | "cannot start\n"); | ||
408 | } | 404 | } |
409 | 405 | ||
410 | ret = misc_register(&s3c2410wdt_miscdev); | 406 | ret = misc_register(&s3c2410wdt_miscdev); |
@@ -453,7 +449,7 @@ static int s3c2410wdt_probe(struct platform_device *pdev) | |||
453 | return ret; | 449 | return ret; |
454 | } | 450 | } |
455 | 451 | ||
456 | static int s3c2410wdt_remove(struct platform_device *dev) | 452 | static int __devexit s3c2410wdt_remove(struct platform_device *dev) |
457 | { | 453 | { |
458 | release_resource(wdt_mem); | 454 | release_resource(wdt_mem); |
459 | kfree(wdt_mem); | 455 | kfree(wdt_mem); |
@@ -515,7 +511,7 @@ static int s3c2410wdt_resume(struct platform_device *dev) | |||
515 | 511 | ||
516 | static struct platform_driver s3c2410wdt_driver = { | 512 | static struct platform_driver s3c2410wdt_driver = { |
517 | .probe = s3c2410wdt_probe, | 513 | .probe = s3c2410wdt_probe, |
518 | .remove = s3c2410wdt_remove, | 514 | .remove = __devexit_p(s3c2410wdt_remove), |
519 | .shutdown = s3c2410wdt_shutdown, | 515 | .shutdown = s3c2410wdt_shutdown, |
520 | .suspend = s3c2410wdt_suspend, | 516 | .suspend = s3c2410wdt_suspend, |
521 | .resume = s3c2410wdt_resume, | 517 | .resume = s3c2410wdt_resume, |
diff --git a/drivers/watchdog/sb_wdog.c b/drivers/watchdog/sb_wdog.c index 38f5831c9291..bc3d68f99ddb 100644 --- a/drivers/watchdog/sb_wdog.c +++ b/drivers/watchdog/sb_wdog.c | |||
@@ -269,9 +269,10 @@ irqreturn_t sbwdog_interrupt(int irq, void *addr) | |||
269 | * if it's the second watchdog timer, it's for those users | 269 | * if it's the second watchdog timer, it's for those users |
270 | */ | 270 | */ |
271 | if (wd_cfg_reg == user_dog) | 271 | if (wd_cfg_reg == user_dog) |
272 | printk(KERN_CRIT | 272 | printk(KERN_CRIT "%s in danger of initiating system reset " |
273 | "%s in danger of initiating system reset in %ld.%01ld seconds\n", | 273 | "in %ld.%01ld seconds\n", |
274 | ident.identity, wd_init / 1000000, (wd_init / 100000) % 10); | 274 | ident.identity, |
275 | wd_init / 1000000, (wd_init / 100000) % 10); | ||
275 | else | 276 | else |
276 | cfg |= 1; | 277 | cfg |= 1; |
277 | 278 | ||
diff --git a/drivers/watchdog/sbc60xxwdt.c b/drivers/watchdog/sbc60xxwdt.c index d1c390c7155c..626d0e8e56c3 100644 --- a/drivers/watchdog/sbc60xxwdt.c +++ b/drivers/watchdog/sbc60xxwdt.c | |||
@@ -372,8 +372,9 @@ static int __init sbc60xxwdt_init(void) | |||
372 | wdt_miscdev.minor, rc); | 372 | wdt_miscdev.minor, rc); |
373 | goto err_out_reboot; | 373 | goto err_out_reboot; |
374 | } | 374 | } |
375 | printk(KERN_INFO PFX "WDT driver for 60XX single board computer initialised. timeout=%d sec (nowayout=%d)\n", | 375 | printk(KERN_INFO PFX |
376 | timeout, nowayout); | 376 | "WDT driver for 60XX single board computer initialised. " |
377 | "timeout=%d sec (nowayout=%d)\n", timeout, nowayout); | ||
377 | 378 | ||
378 | return 0; | 379 | return 0; |
379 | 380 | ||
diff --git a/drivers/watchdog/sbc8360.c b/drivers/watchdog/sbc8360.c index b6e6799ec45d..68e2e2d6f73d 100644 --- a/drivers/watchdog/sbc8360.c +++ b/drivers/watchdog/sbc8360.c | |||
@@ -280,8 +280,8 @@ static int sbc8360_close(struct inode *inode, struct file *file) | |||
280 | if (expect_close == 42) | 280 | if (expect_close == 42) |
281 | sbc8360_stop(); | 281 | sbc8360_stop(); |
282 | else | 282 | else |
283 | printk(KERN_CRIT PFX | 283 | printk(KERN_CRIT PFX "SBC8360 device closed unexpectedly. " |
284 | "SBC8360 device closed unexpectedly. SBC8360 will not stop!\n"); | 284 | "SBC8360 will not stop!\n"); |
285 | 285 | ||
286 | clear_bit(0, &sbc8360_is_open); | 286 | clear_bit(0, &sbc8360_is_open); |
287 | expect_close = 0; | 287 | expect_close = 0; |
diff --git a/drivers/watchdog/sbc_epx_c3.c b/drivers/watchdog/sbc_epx_c3.c index e467ddcf796a..af118a142e95 100644 --- a/drivers/watchdog/sbc_epx_c3.c +++ b/drivers/watchdog/sbc_epx_c3.c | |||
@@ -174,8 +174,8 @@ static struct notifier_block epx_c3_notifier = { | |||
174 | .notifier_call = epx_c3_notify_sys, | 174 | .notifier_call = epx_c3_notify_sys, |
175 | }; | 175 | }; |
176 | 176 | ||
177 | static const char banner[] __initdata = | 177 | static const char banner[] __initdata = KERN_INFO PFX |
178 | KERN_INFO PFX "Hardware Watchdog Timer for Winsystems EPX-C3 SBC: 0.1\n"; | 178 | "Hardware Watchdog Timer for Winsystems EPX-C3 SBC: 0.1\n"; |
179 | 179 | ||
180 | static int __init watchdog_init(void) | 180 | static int __init watchdog_init(void) |
181 | { | 181 | { |
@@ -219,6 +219,9 @@ module_init(watchdog_init); | |||
219 | module_exit(watchdog_exit); | 219 | module_exit(watchdog_exit); |
220 | 220 | ||
221 | MODULE_AUTHOR("Calin A. Culianu <calin@ajvar.org>"); | 221 | MODULE_AUTHOR("Calin A. Culianu <calin@ajvar.org>"); |
222 | MODULE_DESCRIPTION("Hardware Watchdog Device for Winsystems EPX-C3 SBC. Note that there is no way to probe for this device -- so only use it if you are *sure* you are runnning on this specific SBC system from Winsystems! It writes to IO ports 0x1ee and 0x1ef!"); | 222 | MODULE_DESCRIPTION("Hardware Watchdog Device for Winsystems EPX-C3 SBC. " |
223 | "Note that there is no way to probe for this device -- " | ||
224 | "so only use it if you are *sure* you are runnning on this specific " | ||
225 | "SBC system from Winsystems! It writes to IO ports 0x1ee and 0x1ef!"); | ||
223 | MODULE_LICENSE("GPL"); | 226 | MODULE_LICENSE("GPL"); |
224 | MODULE_ALIAS_MISCDEV(WATCHDOG_MINOR); | 227 | MODULE_ALIAS_MISCDEV(WATCHDOG_MINOR); |
diff --git a/drivers/watchdog/scx200_wdt.c b/drivers/watchdog/scx200_wdt.c index 9e19a10a5bb9..ea93692a110a 100644 --- a/drivers/watchdog/scx200_wdt.c +++ b/drivers/watchdog/scx200_wdt.c | |||
@@ -108,7 +108,9 @@ static int scx200_wdt_open(struct inode *inode, struct file *file) | |||
108 | static int scx200_wdt_release(struct inode *inode, struct file *file) | 108 | static int scx200_wdt_release(struct inode *inode, struct file *file) |
109 | { | 109 | { |
110 | if (expect_close != 42) | 110 | if (expect_close != 42) |
111 | printk(KERN_WARNING NAME ": watchdog device closed unexpectedly, will not disable the watchdog timer\n"); | 111 | printk(KERN_WARNING NAME |
112 | ": watchdog device closed unexpectedly, " | ||
113 | "will not disable the watchdog timer\n"); | ||
112 | else if (!nowayout) | 114 | else if (!nowayout) |
113 | scx200_wdt_disable(); | 115 | scx200_wdt_disable(); |
114 | expect_close = 0; | 116 | expect_close = 0; |
diff --git a/drivers/watchdog/shwdt.c b/drivers/watchdog/shwdt.c index cdc7138be301..a03f84e5ee1f 100644 --- a/drivers/watchdog/shwdt.c +++ b/drivers/watchdog/shwdt.c | |||
@@ -494,7 +494,9 @@ MODULE_LICENSE("GPL"); | |||
494 | MODULE_ALIAS_MISCDEV(WATCHDOG_MINOR); | 494 | MODULE_ALIAS_MISCDEV(WATCHDOG_MINOR); |
495 | 495 | ||
496 | module_param(clock_division_ratio, int, 0); | 496 | module_param(clock_division_ratio, int, 0); |
497 | MODULE_PARM_DESC(clock_division_ratio, "Clock division ratio. Valid ranges are from 0x5 (1.31ms) to 0x7 (5.25ms). (default=" __MODULE_STRING(clock_division_ratio) ")"); | 497 | MODULE_PARM_DESC(clock_division_ratio, |
498 | "Clock division ratio. Valid ranges are from 0x5 (1.31ms) " | ||
499 | "to 0x7 (5.25ms). (default=" __MODULE_STRING(clock_division_ratio) ")"); | ||
498 | 500 | ||
499 | module_param(heartbeat, int, 0); | 501 | module_param(heartbeat, int, 0); |
500 | MODULE_PARM_DESC(heartbeat, | 502 | MODULE_PARM_DESC(heartbeat, |
diff --git a/drivers/watchdog/softdog.c b/drivers/watchdog/softdog.c index ebcc9cea5e99..833f49f43d43 100644 --- a/drivers/watchdog/softdog.c +++ b/drivers/watchdog/softdog.c | |||
@@ -71,7 +71,9 @@ static int soft_noboot = 0; | |||
71 | #endif /* ONLY_TESTING */ | 71 | #endif /* ONLY_TESTING */ |
72 | 72 | ||
73 | module_param(soft_noboot, int, 0); | 73 | module_param(soft_noboot, int, 0); |
74 | MODULE_PARM_DESC(soft_noboot, "Softdog action, set to 1 to ignore reboots, 0 to reboot (default depends on ONLY_TESTING)"); | 74 | MODULE_PARM_DESC(soft_noboot, |
75 | "Softdog action, set to 1 to ignore reboots, 0 to reboot " | ||
76 | "(default depends on ONLY_TESTING)"); | ||
75 | 77 | ||
76 | /* | 78 | /* |
77 | * Our timer | 79 | * Our timer |
@@ -264,7 +266,8 @@ static struct notifier_block softdog_notifier = { | |||
264 | .notifier_call = softdog_notify_sys, | 266 | .notifier_call = softdog_notify_sys, |
265 | }; | 267 | }; |
266 | 268 | ||
267 | static char banner[] __initdata = KERN_INFO "Software Watchdog Timer: 0.07 initialized. soft_noboot=%d soft_margin=%d sec (nowayout= %d)\n"; | 269 | static char banner[] __initdata = KERN_INFO "Software Watchdog Timer: 0.07 " |
270 | "initialized. soft_noboot=%d soft_margin=%d sec (nowayout= %d)\n"; | ||
268 | 271 | ||
269 | static int __init watchdog_init(void) | 272 | static int __init watchdog_init(void) |
270 | { | 273 | { |
diff --git a/drivers/watchdog/w83697hf_wdt.c b/drivers/watchdog/w83697hf_wdt.c index a9c7f352fcbf..af08972de506 100644 --- a/drivers/watchdog/w83697hf_wdt.c +++ b/drivers/watchdog/w83697hf_wdt.c | |||
@@ -413,7 +413,8 @@ static int __init wdt_init(void) | |||
413 | w83697hf_init(); | 413 | w83697hf_init(); |
414 | if (early_disable) { | 414 | if (early_disable) { |
415 | if (wdt_running()) | 415 | if (wdt_running()) |
416 | printk(KERN_WARNING PFX "Stopping previously enabled watchdog until userland kicks in\n"); | 416 | printk(KERN_WARNING PFX "Stopping previously enabled " |
417 | "watchdog until userland kicks in\n"); | ||
417 | wdt_disable(); | 418 | wdt_disable(); |
418 | } | 419 | } |
419 | 420 | ||
diff --git a/drivers/watchdog/wdrtas.c b/drivers/watchdog/wdrtas.c index a38fa4907c92..a4fe7a38d9b0 100644 --- a/drivers/watchdog/wdrtas.c +++ b/drivers/watchdog/wdrtas.c | |||
@@ -49,12 +49,7 @@ MODULE_LICENSE("GPL"); | |||
49 | MODULE_ALIAS_MISCDEV(WATCHDOG_MINOR); | 49 | MODULE_ALIAS_MISCDEV(WATCHDOG_MINOR); |
50 | MODULE_ALIAS_MISCDEV(TEMP_MINOR); | 50 | MODULE_ALIAS_MISCDEV(TEMP_MINOR); |
51 | 51 | ||
52 | #ifdef CONFIG_WATCHDOG_NOWAYOUT | 52 | static int wdrtas_nowayout = WATCHDOG_NOWAYOUT; |
53 | static int wdrtas_nowayout = 1; | ||
54 | #else | ||
55 | static int wdrtas_nowayout = 0; | ||
56 | #endif | ||
57 | |||
58 | static atomic_t wdrtas_miscdev_open = ATOMIC_INIT(0); | 53 | static atomic_t wdrtas_miscdev_open = ATOMIC_INIT(0); |
59 | static char wdrtas_expect_close; | 54 | static char wdrtas_expect_close; |
60 | 55 | ||