diff options
author | Axel Lin <axel.lin@ingics.com> | 2013-08-06 00:20:41 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-08-06 13:06:29 -0400 |
commit | 29f0d4884645fbd366ac85918f222605f8441917 (patch) | |
tree | f57e9f2cc819d8a64c8f40816da71d62be65e80f /drivers/spi/spi-mxs.c | |
parent | 796305a2e2d11748637c9d9e2ac71dfbb6af2372 (diff) |
spi: spi-mxs: Remove unused bits_per_word variable
The bits_per_word variable is not used after commit 24778be20f8
"spi: convert drivers to use bits_per_word_mask".
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Marek Vasut <marex@denx.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/spi/spi-mxs.c')
-rw-r--r-- | drivers/spi/spi-mxs.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/spi/spi-mxs.c b/drivers/spi/spi-mxs.c index d7b3e4311f72..de7b1141b90f 100644 --- a/drivers/spi/spi-mxs.c +++ b/drivers/spi/spi-mxs.c | |||
@@ -67,13 +67,8 @@ static int mxs_spi_setup_transfer(struct spi_device *dev, | |||
67 | { | 67 | { |
68 | struct mxs_spi *spi = spi_master_get_devdata(dev->master); | 68 | struct mxs_spi *spi = spi_master_get_devdata(dev->master); |
69 | struct mxs_ssp *ssp = &spi->ssp; | 69 | struct mxs_ssp *ssp = &spi->ssp; |
70 | uint8_t bits_per_word; | ||
71 | uint32_t hz = 0; | 70 | uint32_t hz = 0; |
72 | 71 | ||
73 | bits_per_word = dev->bits_per_word; | ||
74 | if (t && t->bits_per_word) | ||
75 | bits_per_word = t->bits_per_word; | ||
76 | |||
77 | hz = dev->max_speed_hz; | 72 | hz = dev->max_speed_hz; |
78 | if (t && t->speed_hz) | 73 | if (t && t->speed_hz) |
79 | hz = min(hz, t->speed_hz); | 74 | hz = min(hz, t->speed_hz); |