diff options
Diffstat (limited to 'drivers/spi/au1550_spi.c')
-rw-r--r-- | drivers/spi/au1550_spi.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/spi/au1550_spi.c b/drivers/spi/au1550_spi.c index b02f25c702fd..6a407e60f05b 100644 --- a/drivers/spi/au1550_spi.c +++ b/drivers/spi/au1550_spi.c | |||
@@ -291,8 +291,6 @@ static int au1550_spi_setup(struct spi_device *spi) | |||
291 | { | 291 | { |
292 | struct au1550_spi *hw = spi_master_get_devdata(spi->master); | 292 | struct au1550_spi *hw = spi_master_get_devdata(spi->master); |
293 | 293 | ||
294 | if (spi->bits_per_word == 0) | ||
295 | spi->bits_per_word = 8; | ||
296 | if (spi->bits_per_word < 4 || spi->bits_per_word > 24) { | 294 | if (spi->bits_per_word < 4 || spi->bits_per_word > 24) { |
297 | dev_err(&spi->dev, "setup: invalid bits_per_word=%d\n", | 295 | dev_err(&spi->dev, "setup: invalid bits_per_word=%d\n", |
298 | spi->bits_per_word); | 296 | spi->bits_per_word); |