Skip to contentSkip to conversation

spi: dual and quad support(miss "return")

PATCH New wangyuhang 1 participant 1 message Aug 30, 2013

Subsystems (2)
lore
Share & tools
lore

wangyuhang

author
#0 lore raw

PATCH v2 2/2 spi: dual and quad support(miss "return")

Miss return in patch:
commit id:f477b7fb13df2b843997559ff34e87d054ba6538

Delete a "return" when commit the patch to a new kernel version
by mistake. So recover it.

---
 drivers/spi/spi.c |    1 +
 1 file changed, 1 insertion(+)
drivers/spi/spi.c +1 -0
index 6653913..10584ee 100644
@@ -1466,6 +1466,7 @@ static int __spi_async(struct spi_device *spi, struct spi_message *message)
 			return -EINVAL;
 		if (xfer->speed_hz && master->max_speed_hz &&
 		    xfer->speed_hz > master->max_speed_hz)
+			return -EINVAL;
 
 		if (xfer->tx_buf && !xfer->tx_nbits)
 			xfer->tx_nbits = SPI_NBITS_SINGLE;
Signature · 1 line
1.7.9.5