diff mbox

[1/2,V2] spi/mmc_spi: SPI bus locking API, using mutex

Message ID 20100225113601.fc8cf2c1.eschwab@online.de (mailing list archive)
State Rejected
Headers show

Commit Message

Ernst Schwab Feb. 25, 2010, 10:36 a.m. UTC
None
diff mbox

Patch

diff -uprN a/drivers/spi/spi.c b/drivers/spi/spi.c
--- a/drivers/spi/spi.c	2010-02-23 16:51:35.000000000 +0100
+++ b/drivers/spi/spi.c	2010-02-25 11:21:45.000000000 +0100
@@ -731,15 +731,11 @@  int spi_async(struct spi_device *spi, st
 	int ret;
 	unsigned long flags;
 
-	spin_lock_irqsave(&master->bus_lock_spinlock, flags);
-
 	if (master->bus_lock_flag)
 		ret = -EBUSY;
 	else
 		ret = __spi_async(spi, message);
 
-	spin_unlock_irqrestore(&master->bus_lock_spinlock, flags);
-
 	return ret;
 }
 EXPORT_SYMBOL_GPL(spi_async);