spi: octeon: Convert to let spi core validate transfer speed
authorAxel Lin <axel.lin@ingics.com>
Wed, 19 Feb 2014 09:34:47 +0000 (17:34 +0800)
committerMark Brown <broonie@linaro.org>
Mon, 3 Mar 2014 03:59:45 +0000 (11:59 +0800)
commit7984b5ca5c6245e332adcb8a8c2aefb2732b40bf
tree294574391f274f4dd8f2fefb8f7cf77301ccacd6
parent85fe414d3228bdecc52366692c6f70c750f687aa
spi: octeon: Convert to let spi core validate transfer speed

Set master->max_speed_hz then spi core will handle checking transfer speed.
The behavior is different from current code when the speed_hz is greater than
the maximum transfer speed supported by the controller.
Unless there is other good reason, I think we had better make the behavior
consistent with what spi core does.

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