spi: coldfire-qspi: Simplify the code to set register bits for transfer speed
authorAxel Lin <axel.lin@ingics.com>
Thu, 20 Mar 2014 14:59:06 +0000 (22:59 +0800)
committerMark Brown <broonie@linaro.org>
Tue, 25 Mar 2014 18:05:17 +0000 (18:05 +0000)
commit8023d384ff5c55a431c1a9a84cd76648d43ba7d8
tree9dc68bbde8c8908ebdb22bc969da5a07abf10e4a
parent2271cf124a2763b7252887814a7fc8a844767e8f
spi: coldfire-qspi: Simplify the code to set register bits for transfer speed

spi core will use spi->max_speed_hz as transfer speed if the transfer speed was
not set. So we don't need to test t->speed_hz in mcfqspi_transfer_one().

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-coldfire-qspi.c