Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 37982
b: refs/heads/master
c: 25ff378
h: refs/heads/master
v: v3
  • Loading branch information
Ben Dooks authored and Wim Van Sebroeck committed Oct 2, 2006
1 parent 622988a commit a76ab6c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 65a64ec3b4fc904932b832c53e5a86d56b972682
refs/heads/master: 25ff3780d4cd46804e22192a728cfb6b33c84d1b
10 changes: 5 additions & 5 deletions trunk/drivers/char/watchdog/s3c2410_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
#define CONFIG_S3C2410_WATCHDOG_ATBOOT (0)
#define CONFIG_S3C2410_WATCHDOG_DEFAULT_TIME (15)

static int nowayout = WATCHDOG_NOWAYOUT;
static int nowayout = WATCHDOG_NOWAYOUT;
static int tmr_margin = CONFIG_S3C2410_WATCHDOG_DEFAULT_TIME;
static int tmr_atboot = CONFIG_S3C2410_WATCHDOG_ATBOOT;
static int soft_noboot = 0;
Expand Down Expand Up @@ -213,11 +213,10 @@ static int s3c2410wdt_open(struct inode *inode, struct file *file)
if(down_trylock(&open_lock))
return -EBUSY;

if (nowayout) {
if (nowayout)
__module_get(THIS_MODULE);
} else {
allow_close = CLOSE_STATE_ALLOW;
}

allow_close = CLOSE_STATE_NOT;

/* start the timer */
s3c2410wdt_start();
Expand All @@ -230,6 +229,7 @@ static int s3c2410wdt_release(struct inode *inode, struct file *file)
* Shut off the timer.
* Lock it in if it's a module and we set nowayout
*/

if (allow_close == CLOSE_STATE_ALLOW) {
s3c2410wdt_stop();
} else {
Expand Down

0 comments on commit a76ab6c

Please sign in to comment.