commit | 32df9ff2b88f9b3ef0865837cd6a39c957dab875 | [log] [tgz] |
---|---|---|
author | Robert Baldyga <r.baldyga@hackerion.com> | Tue Nov 01 22:18:39 2016 +0100 |
committer | Mark Brown <broonie@kernel.org> | Wed Nov 02 09:30:43 2016 -0600 |
tree | e4f49ad83d6030c856e05fa0e995791bae4dbe26 | |
parent | 2dd33f9cec90499029fd49ffae2922c3f9ccad11 [diff] |
spi: imx: set spi_bus_clk for mx21 and mx27 Introduce additional output parameter in spi_imx_clkdiv_1() function to return result frequency and set it to spi_bus_clk. This fixes division by zero bug, which occurred in spi_imx_calculate_timeout() function. Signed-off-by: Robert Baldyga <r.baldyga@hackerion.com> Signed-off-by: Mark Brown <broonie@kernel.org>