Commit ad6f33d2 authored by Axel Lin's avatar Axel Lin Committed by Mark Brown

spi: atmel: Let spi core handle validating transfer length

spi core will handle validating transfer length since commit 4d94bd21
"spi: core: Validate length of the transfers in message".
So remove the same checking in this driver.
Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 0e6d873a
...@@ -1087,14 +1087,6 @@ static int atmel_spi_one_transfer(struct spi_master *master, ...@@ -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 * DMA map early, for performance (empties dcache ASAP) and
* better fault reporting. * better fault reporting.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment