diff options
Diffstat (limited to 'drivers/watchdog/shwdt.c')
-rw-r--r-- | drivers/watchdog/shwdt.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/drivers/watchdog/shwdt.c b/drivers/watchdog/shwdt.c index a267dc078daf..75bd23926476 100644 --- a/drivers/watchdog/shwdt.c +++ b/drivers/watchdog/shwdt.c | |||
@@ -17,6 +17,9 @@ | |||
17 | * Added expect close support, made emulated timeout runtime changeable | 17 | * Added expect close support, made emulated timeout runtime changeable |
18 | * general cleanups, add some ioctls | 18 | * general cleanups, add some ioctls |
19 | */ | 19 | */ |
20 | |||
21 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
22 | |||
20 | #include <linux/module.h> | 23 | #include <linux/module.h> |
21 | #include <linux/moduleparam.h> | 24 | #include <linux/moduleparam.h> |
22 | #include <linux/platform_device.h> | 25 | #include <linux/platform_device.h> |
@@ -440,20 +443,20 @@ static int __init sh_wdt_init(void) | |||
440 | clock_division_ratio > 0x7)) { | 443 | clock_division_ratio > 0x7)) { |
441 | clock_division_ratio = WTCSR_CKS_4096; | 444 | clock_division_ratio = WTCSR_CKS_4096; |
442 | 445 | ||
443 | pr_info("%s: divisor must be 0x5<=x<=0x7, using %d\n", | 446 | pr_info("divisor must be 0x5<=x<=0x7, using %d\n", |
444 | DRV_NAME, clock_division_ratio); | 447 | clock_division_ratio); |
445 | } | 448 | } |
446 | 449 | ||
447 | rc = sh_wdt_set_heartbeat(heartbeat); | 450 | rc = sh_wdt_set_heartbeat(heartbeat); |
448 | if (unlikely(rc)) { | 451 | if (unlikely(rc)) { |
449 | heartbeat = WATCHDOG_HEARTBEAT; | 452 | heartbeat = WATCHDOG_HEARTBEAT; |
450 | 453 | ||
451 | pr_info("%s: heartbeat value must be 1<=x<=3600, using %d\n", | 454 | pr_info("heartbeat value must be 1<=x<=3600, using %d\n", |
452 | DRV_NAME, heartbeat); | 455 | heartbeat); |
453 | } | 456 | } |
454 | 457 | ||
455 | pr_info("%s: configured with heartbeat=%d sec (nowayout=%d)\n", | 458 | pr_info("configured with heartbeat=%d sec (nowayout=%d)\n", |
456 | DRV_NAME, heartbeat, nowayout); | 459 | heartbeat, nowayout); |
457 | 460 | ||
458 | return platform_driver_register(&sh_wdt_driver); | 461 | return platform_driver_register(&sh_wdt_driver); |
459 | } | 462 | } |