]> git.baikalelectronics.ru Git - kernel.git/commit
spi: sh-hspi: Remove duplicate code to set default transfer speed
authorAxel Lin <axel.lin@ingics.com>
Sun, 2 Mar 2014 15:01:50 +0000 (23:01 +0800)
committerMark Brown <broonie@linaro.org>
Mon, 3 Mar 2014 01:37:46 +0000 (10:37 +0900)
commit5116cae497fdf1397a692ee65c79f923d0529b4b
tree9ff7487ef2ff6d4209e6d27ee5e024af0ecab922
parentb33191022956d1b677fbc6c7ffcd2a47003eec2e
spi: sh-hspi: Remove duplicate code to set default transfer speed

In the implementation of __spi_validate(), spi core will use spi device's max
speed as default transfer speed if it is not set for this transfer.
So we can remove the same logic in hspi_hw_setup().

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-sh-hspi.c