spi: topcliff-pch: Convert to use master->max_speed_hz
authorAxel Lin <axel.lin@ingics.com>
Mon, 10 Feb 2014 14:26:40 +0000 (22:26 +0800)
committerMark Brown <broonie@linaro.org>
Fri, 14 Feb 2014 20:26:48 +0000 (20:26 +0000)
commitfe3a1ad0c60d7ac405f52b5c76ef45c22e054d0c
tree919f478c379ab0c4cc78024a2bd9cd4ac5f084ed
parent38dbfb59d1175ef458d006556061adeaa8751b72
spi: topcliff-pch: Convert to use master->max_speed_hz

Set "master->max_speed_hz = PCH_MAX_BAUDRATE" then we can remove pch_spi_setup.
In additional, pspi->max_speed_hz will never be 0 because it's default value
will be set to master->max_speed_hz.

Also remove list_empty checking in pch_spi_transfer() because the checking is
done by spi core.

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