diff options
author | Martin Kaiser <martin@kaiser.cx> | 2016-09-01 22:38:40 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-09-14 18:06:11 +0100 |
commit | 2636ba8fa39915c7b8d73166961ebbb4c14251cd (patch) | |
tree | 5c6e9651bc9131ca8ce972f59808509940ff1704 /drivers/spi/spi-omap2-mcspi.c | |
parent | 29b4817d4018df78086157ea3a55c1d9424a7cfc (diff) | |
download | linux-2636ba8fa39915c7b8d73166961ebbb4c14251cd.tar.gz linux-2636ba8fa39915c7b8d73166961ebbb4c14251cd.tar.bz2 linux-2636ba8fa39915c7b8d73166961ebbb4c14251cd.zip |
spi: imx: set spi_bus_clk for mx1, mx31 and mx35
Modify spi_imx_clkdiv_2() to return the resulting bus clock frequency
when the selected clock divider is applied. Set spi_imx->spi_bus_clk to
this frequency.
If spi_bus_clk is unset, spi_imx_calculate_timeout() causes a
division by 0.
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-omap2-mcspi.c')
0 files changed, 0 insertions, 0 deletions