diff options
Diffstat (limited to 'drivers/watchdog/ath79_wdt.c')
-rw-r--r-- | drivers/watchdog/ath79_wdt.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/watchdog/ath79_wdt.c b/drivers/watchdog/ath79_wdt.c index 9db808349f8b..1f9371f49c40 100644 --- a/drivers/watchdog/ath79_wdt.c +++ b/drivers/watchdog/ath79_wdt.c | |||
@@ -17,6 +17,8 @@ | |||
17 | * | 17 | * |
18 | */ | 18 | */ |
19 | 19 | ||
20 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
21 | |||
20 | #include <linux/bitops.h> | 22 | #include <linux/bitops.h> |
21 | #include <linux/errno.h> | 23 | #include <linux/errno.h> |
22 | #include <linux/fs.h> | 24 | #include <linux/fs.h> |
@@ -45,8 +47,8 @@ | |||
45 | #define WDOG_CTRL_ACTION_NMI 2 /* NMI */ | 47 | #define WDOG_CTRL_ACTION_NMI 2 /* NMI */ |
46 | #define WDOG_CTRL_ACTION_FCR 3 /* full chip reset */ | 48 | #define WDOG_CTRL_ACTION_FCR 3 /* full chip reset */ |
47 | 49 | ||
48 | static int nowayout = WATCHDOG_NOWAYOUT; | 50 | static bool nowayout = WATCHDOG_NOWAYOUT; |
49 | module_param(nowayout, int, 0); | 51 | module_param(nowayout, bool, 0); |
50 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started " | 52 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started " |
51 | "(default=" __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 53 | "(default=" __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
52 | 54 | ||
@@ -114,8 +116,7 @@ static int ath79_wdt_release(struct inode *inode, struct file *file) | |||
114 | if (test_bit(WDT_FLAGS_EXPECT_CLOSE, &wdt_flags)) | 116 | if (test_bit(WDT_FLAGS_EXPECT_CLOSE, &wdt_flags)) |
115 | ath79_wdt_disable(); | 117 | ath79_wdt_disable(); |
116 | else { | 118 | else { |
117 | pr_crit(DRIVER_NAME ": device closed unexpectedly, " | 119 | pr_crit("device closed unexpectedly, watchdog timer will not stop!\n"); |
118 | "watchdog timer will not stop!\n"); | ||
119 | ath79_wdt_keepalive(); | 120 | ath79_wdt_keepalive(); |
120 | } | 121 | } |
121 | 122 | ||