USB: BKL removal: legousbtower
authorOliver Neukum <oliver@neukum.org>
Thu, 14 Jan 2010 15:12:53 +0000 (16:12 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 2 Mar 2010 22:54:31 +0000 (14:54 -0800)
BKL was not needed at all. Removed without replacement.

Signed-off-by: Oliver Neukum <oliver@neukum.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/misc/legousbtower.c

index 94e1b84134dd8ff2718c06d4f61a9a0357186c0d..3d4378fb441083c7032b0b6567efc482407dd76c 100644 (file)
@@ -82,7 +82,6 @@
 #include <linux/module.h>
 #include <linux/completion.h>
 #include <linux/mutex.h>
-#include <linux/smp_lock.h>
 #include <asm/uaccess.h>
 #include <linux/usb.h>
 #include <linux/poll.h>
@@ -346,7 +345,6 @@ static int tower_open (struct inode *inode, struct file *file)
 
        dbg(2, "%s: enter", __func__);
 
-       lock_kernel();
        nonseekable_open(inode, file);
        subminor = iminor(inode);
 
@@ -432,7 +430,6 @@ unlock_exit:
        mutex_unlock(&dev->lock);
 
 exit:
-       unlock_kernel();
        dbg(2, "%s: leave, return value %d ", __func__, retval);
 
        return retval;