diff options
-rw-r--r-- | arch/blackfin/mach-bf561/coreb.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/blackfin/mach-bf561/coreb.c b/arch/blackfin/mach-bf561/coreb.c index 852647801a01..8598098c0840 100644 --- a/arch/blackfin/mach-bf561/coreb.c +++ b/arch/blackfin/mach-bf561/coreb.c | |||
@@ -32,7 +32,6 @@ | |||
32 | #include <linux/device.h> | 32 | #include <linux/device.h> |
33 | #include <linux/ioport.h> | 33 | #include <linux/ioport.h> |
34 | #include <linux/module.h> | 34 | #include <linux/module.h> |
35 | #include <linux/smp_lock.h> | ||
36 | #include <linux/uaccess.h> | 35 | #include <linux/uaccess.h> |
37 | #include <linux/fs.h> | 36 | #include <linux/fs.h> |
38 | #include <asm/dma.h> | 37 | #include <asm/dma.h> |
@@ -195,9 +194,9 @@ static loff_t coreb_lseek(struct file *file, loff_t offset, int origin) | |||
195 | return ret; | 194 | return ret; |
196 | } | 195 | } |
197 | 196 | ||
197 | /* No BKL needed here */ | ||
198 | static int coreb_open(struct inode *inode, struct file *file) | 198 | static int coreb_open(struct inode *inode, struct file *file) |
199 | { | 199 | { |
200 | lock_kernel(); | ||
201 | spin_lock_irq(&coreb_lock); | 200 | spin_lock_irq(&coreb_lock); |
202 | 201 | ||
203 | if (coreb_status & COREB_IS_OPEN) | 202 | if (coreb_status & COREB_IS_OPEN) |
@@ -206,12 +205,10 @@ static int coreb_open(struct inode *inode, struct file *file) | |||
206 | coreb_status |= COREB_IS_OPEN; | 205 | coreb_status |= COREB_IS_OPEN; |
207 | 206 | ||
208 | spin_unlock_irq(&coreb_lock); | 207 | spin_unlock_irq(&coreb_lock); |
209 | unlock_kernel(); | ||
210 | return 0; | 208 | return 0; |
211 | 209 | ||
212 | out_busy: | 210 | out_busy: |
213 | spin_unlock_irq(&coreb_lock); | 211 | spin_unlock_irq(&coreb_lock); |
214 | unlock_kernel(); | ||
215 | return -EBUSY; | 212 | return -EBUSY; |
216 | } | 213 | } |
217 | 214 | ||