Title: [5783] trunk/drivers/spi/spi_bfin5xx.c: bug [#3713] - remove special hack for the spi_mmc driver (which has been
Revision
5783
Author
adamliyi
Date
2008-12-02 03:43:03 -0600 (Tue, 02 Dec 2008)

Log Message

bug [#3713] - remove special hack for the spi_mmc driver (which has been 
replaced by new mmc_spi driver).

Modified Paths

Diff

Modified: trunk/drivers/spi/spi_bfin5xx.c (5782 => 5783)


--- trunk/drivers/spi/spi_bfin5xx.c	2008-12-02 09:41:23 UTC (rev 5782)
+++ trunk/drivers/spi/spi_bfin5xx.c	2008-12-02 09:43:03 UTC (rev 5783)
@@ -941,18 +941,16 @@
 	if (drv_data->locked)
 		locked_cs = drv_data->locked;
 
-	/* Someone has locked the bus. Treat CS=0 specially (for spi_mmc driver). */
-	if (drv_data->locked && next_msg->spi->chip_select != locked_cs
-		&& next_msg->spi->chip_select != 0) {
+	/* Someone has locked the bus. */
+	if (drv_data->locked && next_msg->spi->chip_select != locked_cs) {
 		list_for_each_entry(msg, &drv_data->queue, queue) {
-			if (msg->spi->chip_select == locked_cs || msg->spi->chip_select == 0) {
+			if (msg->spi->chip_select == locked_cs) {
 				next_msg = msg;
 				break;
 			}
 		}
 		/* Do nothing even if there are messages for other devices */
-		if (next_msg->spi->chip_select != locked_cs
-			&& next_msg->spi->chip_select != 0) {
+		if (next_msg->spi->chip_select != locked_cs) {
 			drv_data->busy = 0;
 			spin_unlock_irqrestore(&drv_data->lock, flags);
 			return;
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
http://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to