aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/mv64x60_wdt.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2012-02-15 18:06:19 -0500
committerWim Van Sebroeck <wim@iguana.be>2012-03-27 13:59:26 -0400
commit27c766aaacb265d625dc634bf7903f7f9fd0c697 (patch)
tree06b399d21dec006bc0a3e1c6685b076753e19b94 /drivers/watchdog/mv64x60_wdt.c
parent7cbc353540c31ffaf65ad44d89b955be0f1d04dc (diff)
watchdog: Use pr_<fmt> and pr_<level>
Use the current logging styles. Make sure all output has a prefix. Add missing newlines. Remove now unnecessary PFX, NAME, and miscellaneous other #defines. Coalesce formats. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog/mv64x60_wdt.c')
-rw-r--r--drivers/watchdog/mv64x60_wdt.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/watchdog/mv64x60_wdt.c b/drivers/watchdog/mv64x60_wdt.c
index 97f8a48d8b78..ee0f828bb34f 100644
--- a/drivers/watchdog/mv64x60_wdt.c
+++ b/drivers/watchdog/mv64x60_wdt.c
@@ -15,6 +15,8 @@
15 * or implied. 15 * or implied.
16 */ 16 */
17 17
18#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
19
18#include <linux/fs.h> 20#include <linux/fs.h>
19#include <linux/init.h> 21#include <linux/init.h>
20#include <linux/kernel.h> 22#include <linux/kernel.h>
@@ -100,7 +102,7 @@ static void mv64x60_wdt_handler_enable(void)
100 if (mv64x60_wdt_toggle_wdc(MV64x60_WDC_ENABLED_FALSE, 102 if (mv64x60_wdt_toggle_wdc(MV64x60_WDC_ENABLED_FALSE,
101 MV64x60_WDC_ENABLE_SHIFT)) { 103 MV64x60_WDC_ENABLE_SHIFT)) {
102 mv64x60_wdt_service(); 104 mv64x60_wdt_service();
103 printk(KERN_NOTICE "mv64x60_wdt: watchdog activated\n"); 105 pr_notice("watchdog activated\n");
104 } 106 }
105} 107}
106 108
@@ -108,7 +110,7 @@ static void mv64x60_wdt_handler_disable(void)
108{ 110{
109 if (mv64x60_wdt_toggle_wdc(MV64x60_WDC_ENABLED_TRUE, 111 if (mv64x60_wdt_toggle_wdc(MV64x60_WDC_ENABLED_TRUE,
110 MV64x60_WDC_ENABLE_SHIFT)) 112 MV64x60_WDC_ENABLE_SHIFT))
111 printk(KERN_NOTICE "mv64x60_wdt: watchdog deactivated\n"); 113 pr_notice("watchdog deactivated\n");
112} 114}
113 115
114static void mv64x60_wdt_set_timeout(unsigned int timeout) 116static void mv64x60_wdt_set_timeout(unsigned int timeout)
@@ -139,8 +141,7 @@ static int mv64x60_wdt_release(struct inode *inode, struct file *file)
139 if (expect_close == 42) 141 if (expect_close == 42)
140 mv64x60_wdt_handler_disable(); 142 mv64x60_wdt_handler_disable();
141 else { 143 else {
142 printk(KERN_CRIT 144 pr_crit("unexpected close, not stopping timer!\n");
143 "mv64x60_wdt: unexpected close, not stopping timer!\n");
144 mv64x60_wdt_service(); 145 mv64x60_wdt_service();
145 } 146 }
146 expect_close = 0; 147 expect_close = 0;
@@ -308,7 +309,7 @@ static struct platform_driver mv64x60_wdt_driver = {
308 309
309static int __init mv64x60_wdt_init(void) 310static int __init mv64x60_wdt_init(void)
310{ 311{
311 printk(KERN_INFO "MV64x60 watchdog driver\n"); 312 pr_info("MV64x60 watchdog driver\n");
312 313
313 return platform_driver_register(&mv64x60_wdt_driver); 314 return platform_driver_register(&mv64x60_wdt_driver);
314} 315}