Skip to content

Commit 4c2aedc

Browse files
committed
spi: Remove BKL from spidev_open
The BKL was added there with the big pushdown. Remove it as the code is serialized already. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> LKML-Reference: <20091010153349.318535932@linutronix.de> Cc: David Brownell <dbrownell@users.sourceforge.net>
1 parent a7e63bb commit 4c2aedc

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎drivers/spi/spidev.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
#include <linux/errno.h>
3131
#include <linux/mutex.h>
3232
#include <linux/slab.h>
33-
#include <linux/smp_lock.h>
3433

3534
#include <linux/spi/spi.h>
3635
#include <linux/spi/spidev.h>
@@ -477,7 +476,6 @@ static int spidev_open(struct inode *inode, struct file *filp)
477476
struct spidev_data *spidev;
478477
int status = -ENXIO;
479478

480-
lock_kernel();
481479
mutex_lock(&device_list_lock);
482480

483481
list_for_each_entry(spidev, &device_list, device_entry) {
@@ -503,7 +501,6 @@ static int spidev_open(struct inode *inode, struct file *filp)
503501
pr_debug("spidev: nothing for minor %d\n", iminor(inode));
504502

505503
mutex_unlock(&device_list_lock);
506-
unlock_kernel();
507504
return status;
508505
}
509506

0 commit comments

Comments
 (0)