aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi/atmel_spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/spi/atmel_spi.c')
-rw-r--r--drivers/spi/atmel_spi.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/spi/atmel_spi.c b/drivers/spi/atmel_spi.c
index 12e443cc4ac9..9f9ff3af72d7 100644
--- a/drivers/spi/atmel_spi.c
+++ b/drivers/spi/atmel_spi.c
@@ -555,8 +555,6 @@ static int atmel_spi_setup(struct spi_device *spi)
555 return -EINVAL; 555 return -EINVAL;
556 } 556 }
557 557
558 if (bits == 0)
559 bits = 8;
560 if (bits < 8 || bits > 16) { 558 if (bits < 8 || bits > 16) {
561 dev_dbg(&spi->dev, 559 dev_dbg(&spi->dev,
562 "setup: invalid bits_per_word %u (8 to 16)\n", 560 "setup: invalid bits_per_word %u (8 to 16)\n",