>From 3f8bc2e9e3f22c69fcd478a45882835826bfb7e5 Mon Sep 17 00:00:00 2001 From: Oliver Neukum <oliver@xxxxxxxxxx> Date: Thu, 14 Jan 2010 10:15:51 +0100 Subject: [PATCH 09/13] usb:BKL removal:ftdi-elan BKL was not needed at all. Removed without replacement. Signed-off-by: Oliver Neukum <oliver@xxxxxxxxxx> --- drivers/usb/misc/ftdi-elan.c | 6 ------ 1 files changed, 0 insertions(+), 6 deletions(-) diff --git a/drivers/usb/misc/ftdi-elan.c b/drivers/usb/misc/ftdi-elan.c index a4db0c6..40541bd 100644 --- a/drivers/usb/misc/ftdi-elan.c +++ b/drivers/usb/misc/ftdi-elan.c @@ -45,7 +45,6 @@ #include <linux/module.h> #include <linux/kref.h> #include <linux/mutex.h> -#include <linux/smp_lock.h> #include <asm/uaccess.h> #include <linux/usb.h> #include <linux/workqueue.h> @@ -627,27 +626,22 @@ static int ftdi_elan_open(struct inode *inode, struct file *file) int subminor; struct usb_interface *interface; - lock_kernel(); subminor = iminor(inode); interface = usb_find_interface(&ftdi_elan_driver, subminor); if (!interface) { - unlock_kernel(); printk(KERN_ERR "can't find device for minor %d\n", subminor); return -ENODEV; } else { struct usb_ftdi *ftdi = usb_get_intfdata(interface); if (!ftdi) { - unlock_kernel(); return -ENODEV; } else { if (down_interruptible(&ftdi->sw_lock)) { - unlock_kernel(); return -EINTR; } else { ftdi_elan_get_kref(ftdi); file->private_data = ftdi; - unlock_kernel(); return 0; } } -- 1.6.4.2 -- 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