clk: sunxi: fix some calculations
authorEmilio López <emilio@elopez.com.ar>
Wed, 19 Mar 2014 18:19:32 +0000 (15:19 -0300)
committerMike Turquette <mturquette@linaro.org>
Wed, 19 Mar 2014 19:34:56 +0000 (12:34 -0700)
commit2226013972da1ec0a2aeb13a684180bb2b50e0f3
tree46eb6fa45466430ff9995979607226d4c18f2e87
parent5a8ddf26822dcf601a44d35efa8fe162cbc84e62
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>
drivers/clk/sunxi/clk-sunxi.c