spi: s3c64xx: Let spi core handle validating transfer length
authorAxel Lin <axel.lin@ingics.com>
Tue, 25 Feb 2014 11:18:29 +0000 (19:18 +0800)
committerMark Brown <broonie@linaro.org>
Tue, 25 Feb 2014 12:27:12 +0000 (21:27 +0900)
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>
drivers/spi/spi-s3c64xx.c

index 9ad5e3e76b96682dc6755932f1889b445ad6d7be..f19cd97855e8e76fc4bc90e8ac21853c58495d7d 100644 (file)
@@ -697,13 +697,6 @@ static int s3c64xx_spi_transfer_one(struct spi_master *master,
        bpw = xfer->bits_per_word;
        speed = xfer->speed_hz ? : spi->max_speed_hz;
 
-       if (xfer->len % (bpw / 8)) {
-               dev_err(&spi->dev,
-                       "Xfer length(%u) not a multiple of word size(%u)\n",
-                       xfer->len, bpw / 8);
-               return -EIO;
-       }
-
        if (bpw != sdd->cur_bpw || speed != sdd->cur_speed) {
                sdd->cur_bpw = bpw;
                sdd->cur_speed = speed;