]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8f5d3134387255c4185233773063ac680db0c587
treef66b407711bdd09e85cfd3bc052324d28b97106b
parentd5618f36ad1fa4433f1b653965133e8a5196feb1
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