diff options
Diffstat (limited to 'drivers/spi/spi-sirf.c')
-rw-r--r-- | drivers/spi/spi-sirf.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/spi/spi-sirf.c b/drivers/spi/spi-sirf.c index ed5e501c4652..e430689c3837 100644 --- a/drivers/spi/spi-sirf.c +++ b/drivers/spi/spi-sirf.c | |||
@@ -536,16 +536,9 @@ spi_sirfsoc_setup_transfer(struct spi_device *spi, struct spi_transfer *t) | |||
536 | 536 | ||
537 | static int spi_sirfsoc_setup(struct spi_device *spi) | 537 | static int spi_sirfsoc_setup(struct spi_device *spi) |
538 | { | 538 | { |
539 | struct sirfsoc_spi *sspi; | ||
540 | |||
541 | if (!spi->max_speed_hz) | 539 | if (!spi->max_speed_hz) |
542 | return -EINVAL; | 540 | return -EINVAL; |
543 | 541 | ||
544 | sspi = spi_master_get_devdata(spi->master); | ||
545 | |||
546 | if (!spi->bits_per_word) | ||
547 | spi->bits_per_word = 8; | ||
548 | |||
549 | return spi_sirfsoc_setup_transfer(spi, NULL); | 542 | return spi_sirfsoc_setup_transfer(spi, NULL); |
550 | } | 543 | } |
551 | 544 | ||