diff options
Diffstat (limited to 'drivers/watchdog/eurotechwdt.c')
-rw-r--r-- | drivers/watchdog/eurotechwdt.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/watchdog/eurotechwdt.c b/drivers/watchdog/eurotechwdt.c index 96250118fd7c..bbd14e34319f 100644 --- a/drivers/watchdog/eurotechwdt.c +++ b/drivers/watchdog/eurotechwdt.c | |||
@@ -210,7 +210,7 @@ size_t count, loff_t *ppos) | |||
210 | 210 | ||
211 | for (i = 0; i != count; i++) { | 211 | for (i = 0; i != count; i++) { |
212 | char c; | 212 | char c; |
213 | if (get_user(c, buf+i)) | 213 | if (get_user(c, buf + i)) |
214 | return -EFAULT; | 214 | return -EFAULT; |
215 | if (c == 'V') | 215 | if (c == 'V') |
216 | eur_expect_close = 42; | 216 | eur_expect_close = 42; |
@@ -360,10 +360,8 @@ static int eurwdt_release(struct inode *inode, struct file *file) | |||
360 | static int eurwdt_notify_sys(struct notifier_block *this, unsigned long code, | 360 | static int eurwdt_notify_sys(struct notifier_block *this, unsigned long code, |
361 | void *unused) | 361 | void *unused) |
362 | { | 362 | { |
363 | if (code == SYS_DOWN || code == SYS_HALT) { | 363 | if (code == SYS_DOWN || code == SYS_HALT) |
364 | /* Turn the card off */ | 364 | eurwdt_disable_timer(); /* Turn the card off */ |
365 | eurwdt_disable_timer(); | ||
366 | } | ||
367 | 365 | ||
368 | return NOTIFY_DONE; | 366 | return NOTIFY_DONE; |
369 | } | 367 | } |