diff options
author | Mark Brown <broonie@kernel.org> | 2015-04-07 06:54:40 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-04-07 06:54:40 -0400 |
commit | 63031ed6b8bd69d4baff6a46f5c9b79b51bd1eaa (patch) | |
tree | 34150d2e7ac4eb6c00f4bc96991947f71a338a0d | |
parent | 95bf15f386417f3ba80bb860c1385b1ebfdcdffa (diff) | |
parent | e689d6df8257f92abf59e93736632b79c9b2aa66 (diff) |
Merge branch 'fix/fsl-dspi' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi into spi-fsl-dspi
Conflicts:
drivers/spi/spi-fsl-dspi.c
-rw-r--r-- | drivers/spi/spi-fsl-dspi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/spi/spi-fsl-dspi.c b/drivers/spi/spi-fsl-dspi.c index 4b6032dd0990..5fe54cda309f 100644 --- a/drivers/spi/spi-fsl-dspi.c +++ b/drivers/spi/spi-fsl-dspi.c | |||
@@ -155,6 +155,8 @@ static void hz_to_spi_baud(char *pbr, char *br, int speed_hz, | |||
155 | int i, j; | 155 | int i, j; |
156 | 156 | ||
157 | scale_needed = clkrate / speed_hz; | 157 | scale_needed = clkrate / speed_hz; |
158 | if (clkrate % speed_hz) | ||
159 | scale_needed++; | ||
158 | 160 | ||
159 | for (i = 0; i < ARRAY_SIZE(brs); i++) | 161 | for (i = 0; i < ARRAY_SIZE(brs); i++) |
160 | for (j = 0; j < ARRAY_SIZE(pbr_tbl); j++) { | 162 | for (j = 0; j < ARRAY_SIZE(pbr_tbl); j++) { |