spi: sirf: assign spi_master's max_speed_hz member
authorQipan Li <Qipan.Li@csr.com>
Mon, 17 Nov 2014 15:17:03 +0000 (23:17 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 18 Nov 2014 14:45:02 +0000 (14:45 +0000)
commitfcc50e5cd2deb8316d19e446d8efdfc9b35646ef
tree578691ec08d21ac98b5e0982c56bee72e65fa002
parentf114040e3ea6e07372334ade75d1ee0775c355e1
spi: sirf: assign spi_master's max_speed_hz member

if spi device has no frequency, spi core will setup the default frequency
to max_speed_hz of spi_master according to
int spi_setup(struct spi_device *spi)
{
...
        if (!spi->max_speed_hz)
                spi->max_speed_hz = spi->master->max_speed_hz;
...
}
this patch moves CSR SiRFSoC SPI frequency set to follow SPI core behaviour.

Signed-off-by: Qipan Li <Qipan.Li@csr.com>
Signed-off-by: Barry Song <Baohua.Song@csr.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-sirf.c