diff options
author | Axel Lin <axel.lin@ingics.com> | 2013-08-06 06:20:41 +0200 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-08-06 19:06:29 +0200 |
commit | 29f0d4884645fbd366ac85918f222605f8441917 (patch) | |
tree | f57e9f2cc819d8a64c8f40816da71d62be65e80f /drivers/spi/spi-mxs.c | |
parent | spi: spi-mxs: Remove unneeded check for platform_get_resource() (diff) | |
download | linux-29f0d4884645fbd366ac85918f222605f8441917.tar.xz linux-29f0d4884645fbd366ac85918f222605f8441917.zip |
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, { struct mxs_spi *spi = spi_master_get_devdata(dev->master); struct mxs_ssp *ssp = &spi->ssp; - uint8_t bits_per_word; uint32_t hz = 0; - bits_per_word = dev->bits_per_word; - if (t && t->bits_per_word) - bits_per_word = t->bits_per_word; - hz = dev->max_speed_hz; if (t && t->speed_hz) hz = min(hz, t->speed_hz); |