diff options
author | Axel Lin <axel.lin@ingics.com> | 2014-02-25 06:57:19 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-03-02 23:01:28 -0500 |
commit | ad6f33d22c25e7340107a330e6de60bba57ecf52 (patch) | |
tree | e2ed216df4bef3a63a3e6557a391bb36cc77361e | |
parent | 0e6d873ac43c7452d33f7b57b8b91172ad0f78d7 (diff) |
spi: atmel: Let spi core handle validating transfer length
spi core will handle validating transfer length since commit 4d94bd21b333
"spi: core: Validate length of the transfers in message".
So remove the same checking in this driver.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r-- | drivers/spi/spi-atmel.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/spi/spi-atmel.c b/drivers/spi/spi-atmel.c index 88bebf8cf0e5..4804586edd29 100644 --- a/drivers/spi/spi-atmel.c +++ b/drivers/spi/spi-atmel.c | |||
@@ -1087,14 +1087,6 @@ static int atmel_spi_one_transfer(struct spi_master *master, | |||
1087 | } | 1087 | } |
1088 | } | 1088 | } |
1089 | 1089 | ||
1090 | if (xfer->bits_per_word > 8) { | ||
1091 | if (xfer->len % 2) { | ||
1092 | dev_dbg(&spi->dev, | ||
1093 | "buffer len should be 16 bits aligned\n"); | ||
1094 | return -EINVAL; | ||
1095 | } | ||
1096 | } | ||
1097 | |||
1098 | /* | 1090 | /* |
1099 | * DMA map early, for performance (empties dcache ASAP) and | 1091 | * DMA map early, for performance (empties dcache ASAP) and |
1100 | * better fault reporting. | 1092 | * better fault reporting. |