Title: [7482] branches/2009R1/drivers/spi/spi_bfin5xx.c: fix bug [#5551] - check-in patch from Andrew Fomushkin ([email protected]).
Revision
7482
Author
adamliyi
Date
2009-09-28 04:23:33 -0400 (Mon, 28 Sep 2009)

Log Message

fix bug [#5551] - check-in patch from Andrew Fomushkin ([email protected]).

Modified Paths

Diff

Modified: branches/2009R1/drivers/spi/spi_bfin5xx.c (7481 => 7482)


--- branches/2009R1/drivers/spi/spi_bfin5xx.c	2009-09-28 08:09:37 UTC (rev 7481)
+++ branches/2009R1/drivers/spi/spi_bfin5xx.c	2009-09-28 08:23:33 UTC (rev 7482)
@@ -950,9 +950,9 @@
 	/* Someone has locked the bus */
 	if (drv_data->locked && next_cs != locked_cs) {
 		list_for_each_entry(msg, &drv_data->queue, queue) {
-			chip = spi_get_ctldata(next_msg->spi);
-			next_cs = next_msg->spi->chip_select ?
-				next_msg->spi->chip_select : chip->cs_gpio;
+			chip = spi_get_ctldata(msg->spi);
+			next_cs = msg->spi->chip_select ?
+				msg->spi->chip_select : chip->cs_gpio;
 			if (next_cs == locked_cs) {
 				next_msg = msg;
 				break;
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to