Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100406
b: refs/heads/master
c: 57debdd
h: refs/heads/master
v: v3
  • Loading branch information
Jonathan Corbet committed Jul 2, 2008
1 parent 3ee3a2b commit b2c2642
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 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: a238b790d5f99c7832f9b73ac8847025815b85f7
refs/heads/master: 57debddaa1d247ed147209b22b5d40bd97526c33
5 changes: 1 addition & 4 deletions trunk/arch/blackfin/mach-bf561/coreb.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
#include <linux/device.h>
#include <linux/ioport.h>
#include <linux/module.h>
#include <linux/smp_lock.h>
#include <linux/uaccess.h>
#include <linux/fs.h>
#include <asm/dma.h>
Expand Down Expand Up @@ -195,9 +194,9 @@ static loff_t coreb_lseek(struct file *file, loff_t offset, int origin)
return ret;
}

/* No BKL needed here */
static int coreb_open(struct inode *inode, struct file *file)
{
lock_kernel();
spin_lock_irq(&coreb_lock);

if (coreb_status & COREB_IS_OPEN)
Expand All @@ -206,12 +205,10 @@ static int coreb_open(struct inode *inode, struct file *file)
coreb_status |= COREB_IS_OPEN;

spin_unlock_irq(&coreb_lock);
unlock_kernel();
return 0;

out_busy:
spin_unlock_irq(&coreb_lock);
unlock_kernel();
return -EBUSY;
}

Expand Down

0 comments on commit b2c2642

Please sign in to comment.