USB: ftdi_sio: Replace BKL with a mutex
authorAlessio Igor Bogani <abogani@texware.it>
Tue, 2 Feb 2010 15:18:28 +0000 (16:18 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 2 Mar 2010 22:54:52 +0000 (14:54 -0800)
commitbd09a9f5318d0a088605911325d6e6e8530bdc9a
treeb20c10b5e32cfc04054a5a30e7d7032dab6858d2
parenta79df50bbad3b58efb5f2c730ca20573a674de10
USB: ftdi_sio: Replace BKL with a mutex

As Alan Cox have pinpointed the driver still required protection against
parallels calls to the config ioctl(). If lock is still necessary the use of
BKL is abused here. So replace BKL with a more convenient mutex.

Signed-off-by: Alessio Igor Bogani <abogani@texware.it>
Cc: Greg Kroah-Hartman <gregkh@suse.de>
Cc: Johan Hovold <jhovold@gmail.com>
Cc: Alan Cox <alan@linux.intel.com>
Cc: Daniel Mack <daniel@caiaq.de>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/ftdi_sio.c