Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 212923
b: refs/heads/master
c: efbec1c
h: refs/heads/master
i:
  212921: ee503d7
  212919: 8ab49a9
v: v3
  • Loading branch information
Arnd Bergmann committed Oct 19, 2010
1 parent 2fa84b0 commit bf74e6b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: c4a047272566b44b44222369d50a307c708c4f74
refs/heads/master: efbec1cd042008b49fe3cad45604088c54905a06
6 changes: 3 additions & 3 deletions trunk/drivers/char/tlclk.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#include <linux/ioport.h>
#include <linux/interrupt.h>
#include <linux/spinlock.h>
#include <linux/smp_lock.h>
#include <linux/mutex.h>
#include <linux/timer.h>
#include <linux/sysfs.h>
#include <linux/device.h>
Expand Down Expand Up @@ -206,7 +206,7 @@ static int tlclk_open(struct inode *inode, struct file *filp)
{
int result;

lock_kernel();
mutex_lock(&tlclk_mutex);
if (test_and_set_bit(0, &useflags)) {
result = -EBUSY;
/* this legacy device is always one per system and it doesn't
Expand All @@ -229,7 +229,7 @@ static int tlclk_open(struct inode *inode, struct file *filp)
inb(TLCLK_REG6); /* Clear interrupt events */

out:
unlock_kernel();
mutex_unlock(&tlclk_mutex);
return result;
}

Expand Down

0 comments on commit bf74e6b

Please sign in to comment.