diff --git a/drivers/staging/frontier/alphatrack.c b/drivers/staging/frontier/alphatrack.c index e2f82f0dbad87e8f12b6573e9b0dd3f4cb23670e..15aed87fe1bb5a0310d17684f5dcd6a47a4501f0 100644 --- a/drivers/staging/frontier/alphatrack.c +++ b/drivers/staging/frontier/alphatrack.c @@ -41,7 +41,6 @@ #include #include -#include #include #include #include @@ -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 @@ static int usb_alphatrack_open(struct inode *inode, struct file *file) 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 1d3f7dc90f4f2f2de4aee2ef06d9825effbfe17a..ef8fcc8c67bd7db85cbc14607967a70e26487147 100644 --- a/drivers/staging/frontier/tranzport.c +++ b/drivers/staging/frontier/tranzport.c @@ -40,7 +40,6 @@ #include #include -#include #include #include #include @@ -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 @@ static int usb_tranzport_open(struct inode *inode, struct file *file) unlock_disconnect_exit: mutex_unlock(&disconnect_mutex); - unlock_kernel(); return retval; }