diff options
author | Axel Lin <axel.lin@ingics.com> | 2014-02-25 19:57:19 +0800 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-03-03 12:01:28 +0800 |
commit | ad6f33d22c25e7340107a330e6de60bba57ecf52 (patch) | |
tree | e2ed216df4bef3a63a3e6557a391bb36cc77361e | |
parent | 0e6d873ac43c7452d33f7b57b8b91172ad0f78d7 (diff) | |
download | blackbird-op-linux-ad6f33d22c25e7340107a330e6de60bba57ecf52.tar.gz blackbird-op-linux-ad6f33d22c25e7340107a330e6de60bba57ecf52.zip |
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, } } - if (xfer->bits_per_word > 8) { - if (xfer->len % 2) { - dev_dbg(&spi->dev, - "buffer len should be 16 bits aligned\n"); - return -EINVAL; - } - } - /* * DMA map early, for performance (empties dcache ASAP) and * better fault reporting. |