Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100337
b: refs/heads/master
c: b05c9e6
h: refs/heads/master
i:
  100335: 66fd87d
v: v3
  • Loading branch information
Arnd Bergmann authored and Jonathan Corbet committed Jun 20, 2008
1 parent ee72980 commit d7c8794
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 122bc5eaf81a3870f6cc00d2e5e97f32f92e636b
refs/heads/master: b05c9e6cd939b6f79be17e9b6a23ca15a219dec2
4 changes: 4 additions & 0 deletions trunk/drivers/sbus/char/cpwatchdog.c
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ static inline int wd_opt_timeout(void)

static int wd_open(struct inode *inode, struct file *f)
{
lock_kernel();
switch(iminor(inode))
{
case WD0_MINOR:
Expand All @@ -291,6 +292,7 @@ static int wd_open(struct inode *inode, struct file *f)
f->private_data = &wd_dev.watchdog[WD2_ID];
break;
default:
unlock_kernel();
return(-ENODEV);
}

Expand All @@ -304,11 +306,13 @@ static int wd_open(struct inode *inode, struct file *f)
(void *)wd_dev.regs)) {
printk("%s: Cannot register IRQ %d\n",
WD_OBPNAME, wd_dev.irq);
unlock_kernel();
return(-EBUSY);
}
wd_dev.initialized = 1;
}

unlock_kernel();
return(nonseekable_open(inode, f));
}

Expand Down

0 comments on commit d7c8794

Please sign in to comment.