Commit 29f0d488 authored by Axel Lin's avatar Axel Lin Committed by Mark Brown

spi: spi-mxs: Remove unused bits_per_word variable

The bits_per_word variable is not used after commit 24778be2
"spi: convert drivers to use bits_per_word_mask".
Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Acked-by: default avatarMarek Vasut <marex@denx.de>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 796305a2
...@@ -67,13 +67,8 @@ static int mxs_spi_setup_transfer(struct spi_device *dev, ...@@ -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_spi *spi = spi_master_get_devdata(dev->master);
struct mxs_ssp *ssp = &spi->ssp; struct mxs_ssp *ssp = &spi->ssp;
uint8_t bits_per_word;
uint32_t hz = 0; 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; hz = dev->max_speed_hz;
if (t && t->speed_hz) if (t && t->speed_hz)
hz = min(hz, t->speed_hz); hz = min(hz, t->speed_hz);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment