SPI: use mutex not semaphore
commit068f4070868c801c7d7aa1ae1193c1c854193545
authorDavid Brownell <david-b@pacbell.net>
Wed, 5 Dec 2007 07:45:09 +0000 (4 23:45 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 5 Dec 2007 17:21:18 +0000 (5 09:21 -0800)
tree17167c675c5115653e3f28f8977bdfd43b22ce6a
parentf8fcc93319faa09272185af100fb24e71b02ab03
SPI: use mutex not semaphore

Make spi_write_then_read() use a mutex not a binary semaphore.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/spi/spi.c