OSDN Git Service

spi: spi-ep93xx: don't bother calculating the divisors in ep93xx_spi_setup()
authorH Hartley Sweeten <hartleys@visionengravers.com>
Tue, 2 Jul 2013 17:10:00 +0000 (10:10 -0700)
committerMark Brown <broonie@linaro.org>
Mon, 15 Jul 2013 10:37:14 +0000 (11:37 +0100)
commit22c1b69ea833de84a9505135303ff443e62b3b15
treea927135f705d3b8338b2c61204b514d9ce6d74d0
parente6eb8d9bb7b9c144ae63a5e97a686dd8a3377443
spi: spi-ep93xx: don't bother calculating the divisors in ep93xx_spi_setup()

The divisors needed to generate the SPI clock are calculated per
transfer based on the t->speed_hz. There is no reason to calculate
them in ep93xx_spi_setup().

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Acked-by: Mika Westerberg <mika.westerberg@iki.fi>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-ep93xx.c