commit | 2226013972da1ec0a2aeb13a684180bb2b50e0f3 | [log] [tgz] |
---|---|---|
author | Emilio López <emilio@elopez.com.ar> | Wed Mar 19 15:19:32 2014 -0300 |
committer | Mike Turquette <mturquette@linaro.org> | Wed Mar 19 12:34:56 2014 -0700 |
tree | 46eb6fa45466430ff9995979607226d4c18f2e87 | |
parent | 5a8ddf26822dcf601a44d35efa8fe162cbc84e62 [diff] |
clk: sunxi: fix some calculations Some divisor calculations were misrounded, causing higher than requested rates on some clocks. Fix them up using DIV_ROUND_UP, and replace one homebrew instance of it as well with the right macro. Reported-by: Boris BREZILLON <b.brezillon.dev@gmail.com> Signed-off-by: Emilio López <emilio@elopez.com.ar> Signed-off-by: Mike Turquette <mturquette@linaro.org>