aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/w83627hf_wdt.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/watchdog/w83627hf_wdt.c')
-rw-r--r--drivers/watchdog/w83627hf_wdt.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/watchdog/w83627hf_wdt.c b/drivers/watchdog/w83627hf_wdt.c
index 59507f609996..69396adaa5c3 100644
--- a/drivers/watchdog/w83627hf_wdt.c
+++ b/drivers/watchdog/w83627hf_wdt.c
@@ -180,7 +180,7 @@ static ssize_t wdt_write(struct file *file, const char __user *buf,
180 180
181 for (i = 0; i != count; i++) { 181 for (i = 0; i != count; i++) {
182 char c; 182 char c;
183 if (get_user(c, buf+i)) 183 if (get_user(c, buf + i))
184 return -EFAULT; 184 return -EFAULT;
185 if (c == 'V') 185 if (c == 'V')
186 expect_close = 42; 186 expect_close = 42;
@@ -278,10 +278,9 @@ static int wdt_close(struct inode *inode, struct file *file)
278static int wdt_notify_sys(struct notifier_block *this, unsigned long code, 278static int wdt_notify_sys(struct notifier_block *this, unsigned long code,
279 void *unused) 279 void *unused)
280{ 280{
281 if (code == SYS_DOWN || code == SYS_HALT) { 281 if (code == SYS_DOWN || code == SYS_HALT)
282 /* Turn the WDT off */ 282 wdt_disable(); /* Turn the WDT off */
283 wdt_disable(); 283
284 }
285 return NOTIFY_DONE; 284 return NOTIFY_DONE;
286} 285}
287 286