Patchwork [V2,2/2] spi: dual and quad support(miss "return")

login
register
mail settings
Submitter 王宇航
Date Aug. 30, 2013, 10:14 a.m.
Message ID <1377857676-6986-1-git-send-email-wangyuhang2014@gmail.com>
Download mbox | patch
Permalink /patch/271215/
State New
Headers show

Comments

王宇航 - Aug. 30, 2013, 10:14 a.m.
Miss return in patch:
commit id:f477b7fb13df2b843997559ff34e87d054ba6538

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

Signed-off-by: wangyuhang <wangyuhang2014@gmail.com>
---
 drivers/spi/spi.c |    1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c
index 6653913..10584ee 100644
--- a/drivers/spi/spi.c
+++ b/drivers/spi/spi.c
@@ -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;