spi: tegra20-slink: Convert to use master->max_speed_hz
authorAxel Lin <axel.lin@ingics.com>
Mon, 10 Feb 2014 13:51:13 +0000 (21:51 +0800)
committerMark Brown <broonie@linaro.org>
Tue, 11 Feb 2014 12:07:53 +0000 (12:07 +0000)
commit3c604de496d7568b3fddb9f2531630aa89908186
tree144628bca4f44ff1f7b429a2195e703f16a9c63f
parent44830b4c2f978a1bc667d1557d26277a7e593cf5
spi: tegra20-slink: Convert to use master->max_speed_hz

Use master->max_speed_hz instead of tspi->spi_max_frequency, so spi core will
handle checking transfer speed.

In additional, since commit 052eb2d49006 'spi: core: Set max_speed_hz of
spi_device default to max_speed_hz of controller',
spi core will also set default spi->max_speed_hz if it is not set.
So remove the duplicate code in tegra_slink_setup.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-tegra20-slink.c