diff options
author | Jarkko Nikula <jarkko.nikula@linux.intel.com> | 2015-09-15 09:26:13 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-09-16 15:52:52 -0400 |
commit | fc306de9b54e94a2949fee452741c00259d7dd4a (patch) | |
tree | f91b5b773c8d72926339f05155623a126104eae6 | |
parent | 6ff33f3902c3b1c5d0db6b1e2c70b6d76fba357f (diff) |
spi: txx9: Use transfer speed unconditionally
SPI core validates the transfer speed and defaults to spi->max_speed_hz in
case the transfer speed is not set.
Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | drivers/spi/spi-txx9.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-txx9.c b/drivers/spi/spi-txx9.c index 9190124b6d90..d69f8f8f3fa6 100644 --- a/drivers/spi/spi-txx9.c +++ b/drivers/spi/spi-txx9.c | |||
@@ -181,7 +181,7 @@ static void txx9spi_work_one(struct txx9spi *c, struct spi_message *m) | |||
181 | u32 data; | 181 | u32 data; |
182 | unsigned int len = t->len; | 182 | unsigned int len = t->len; |
183 | unsigned int wsize; | 183 | unsigned int wsize; |
184 | u32 speed_hz = t->speed_hz ? : spi->max_speed_hz; | 184 | u32 speed_hz = t->speed_hz; |
185 | u8 bits_per_word = t->bits_per_word; | 185 | u8 bits_per_word = t->bits_per_word; |
186 | 186 | ||
187 | wsize = bits_per_word >> 3; /* in bytes */ | 187 | wsize = bits_per_word >> 3; /* in bytes */ |