usb: ftdi-elan: Convert "mutex" to semaphore
authorThomas Gleixner <tglx@linutronix.de>
Tue, 7 Sep 2010 14:32:43 +0000 (14:32 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 22 Oct 2010 17:21:31 +0000 (10:21 -0700)
commit5014b5e33a5485ab669ce536078c957ec221ade3
treef66b407711bdd09e85cfd3bc052324d28b97106b
parenta1df4e45c81ec9ae6b537f845db48b82ab40ac4f
usb: ftdi-elan: Convert "mutex" to semaphore

The "mutex" ftdi->sw_lock is used as a lock and a completion. Convert
it to a real semaphore which allows both.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/misc/ftdi-elan.c