[PATCH 148/220] USB: BKL removal: frontier

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Oliver Neukum <oliver@xxxxxxxxxx>

BKL was not needed at all. Removed without replacement.

Signed-off-by: Oliver Neukum <oliver@xxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxx>
---
 drivers/staging/frontier/alphatrack.c |    3 ---
 drivers/staging/frontier/tranzport.c  |    3 ---
 2 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/drivers/staging/frontier/alphatrack.c b/drivers/staging/frontier/alphatrack.c
index e2f82f0..15aed87 100644
--- a/drivers/staging/frontier/alphatrack.c
+++ b/drivers/staging/frontier/alphatrack.c
@@ -41,7 +41,6 @@
 #include <linux/mutex.h>
 
 #include <linux/uaccess.h>
-#include <linux/smp_lock.h>
 #include <linux/input.h>
 #include <linux/usb.h>
 #include <linux/poll.h>
@@ -326,7 +325,6 @@ static int usb_alphatrack_open(struct inode *inode, struct file *file)
 	int retval = 0;
 	struct usb_interface *interface;
 
-	lock_kernel();
 	nonseekable_open(inode, file);
 	subminor = iminor(inode);
 
@@ -396,7 +394,6 @@ unlock_exit:
 
 unlock_disconnect_exit:
 	mutex_unlock(&disconnect_mutex);
-	unlock_kernel();
 
 	return retval;
 }
diff --git a/drivers/staging/frontier/tranzport.c b/drivers/staging/frontier/tranzport.c
index 1d3f7dc..ef8fcc8 100644
--- a/drivers/staging/frontier/tranzport.c
+++ b/drivers/staging/frontier/tranzport.c
@@ -40,7 +40,6 @@
 #include <linux/mutex.h>
 
 #include <linux/uaccess.h>
-#include <linux/smp_lock.h>
 #include <linux/input.h>
 #include <linux/usb.h>
 #include <linux/poll.h>
@@ -344,7 +343,6 @@ static int usb_tranzport_open(struct inode *inode, struct file *file)
 	int retval = 0;
 	struct usb_interface *interface;
 
-	lock_kernel();
 	nonseekable_open(inode, file);
 	subminor = iminor(inode);
 
@@ -415,7 +413,6 @@ unlock_exit:
 
 unlock_disconnect_exit:
 	mutex_unlock(&disconnect_mutex);
-	unlock_kernel();
 
 	return retval;
 }
-- 
1.7.0.1

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux