aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/txx9wdt.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/watchdog/txx9wdt.c')
-rw-r--r--drivers/watchdog/txx9wdt.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/watchdog/txx9wdt.c b/drivers/watchdog/txx9wdt.c
index 9e9ed7bfabcb..99204a808698 100644
--- a/drivers/watchdog/txx9wdt.c
+++ b/drivers/watchdog/txx9wdt.c
@@ -7,6 +7,9 @@
7 * it under the terms of the GNU General Public License version 2 as 7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation. 8 * published by the Free Software Foundation.
9 */ 9 */
10
11#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
12
10#include <linux/module.h> 13#include <linux/module.h>
11#include <linux/moduleparam.h> 14#include <linux/moduleparam.h>
12#include <linux/types.h> 15#include <linux/types.h>
@@ -96,8 +99,7 @@ static int txx9wdt_release(struct inode *inode, struct file *file)
96 if (expect_close) 99 if (expect_close)
97 txx9wdt_stop(); 100 txx9wdt_stop();
98 else { 101 else {
99 printk(KERN_CRIT "txx9wdt: " 102 pr_crit("Unexpected close, not stopping watchdog!\n");
100 "Unexpected close, not stopping watchdog!\n");
101 txx9wdt_ping(); 103 txx9wdt_ping();
102 } 104 }
103 clear_bit(0, &txx9wdt_alive); 105 clear_bit(0, &txx9wdt_alive);
@@ -213,9 +215,8 @@ static int __init txx9wdt_probe(struct platform_device *dev)
213 goto exit; 215 goto exit;
214 } 216 }
215 217
216 printk(KERN_INFO "Hardware Watchdog Timer for TXx9: " 218 pr_info("Hardware Watchdog Timer: timeout=%d sec (max %ld) (nowayout= %d)\n",
217 "timeout=%d sec (max %ld) (nowayout= %d)\n", 219 timeout, WD_MAX_TIMEOUT, nowayout);
218 timeout, WD_MAX_TIMEOUT, nowayout);
219 220
220 return 0; 221 return 0;
221exit_busy: 222exit_busy: