diff options
author | Mike Turquette <mturquette@linaro.org> | 2014-07-25 17:45:30 -0700 |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2014-07-25 17:45:30 -0700 |
commit | 3cc5aba4158e757ddd33751db6ca1729741e8dba (patch) | |
tree | 603de23aec889afde3080dbccd8090a0cba8ceff /drivers/clk/sunxi/clk-factors.c | |
parent | 9ae1400588a114be908bcf650aa57309c1a508ed (diff) | |
parent | 6c1d66f0da59362cb33ce37d436cd28c77c2b2cb (diff) |
Merge tag 'sunxi-clocks-for-3.17' of git://git.kernel.org/pub/scm/linux/kernel/git/mripard/linux into clk-next-sunxi
Allwinner clocks additions for 3.17
This pull request adds support for the clocks found in the newly supported
Allwinner A23 clocks.
Diffstat (limited to 'drivers/clk/sunxi/clk-factors.c')
-rw-r--r-- | drivers/clk/sunxi/clk-factors.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/sunxi/clk-factors.c b/drivers/clk/sunxi/clk-factors.c index 3806d97e529b..2057c8ac648f 100644 --- a/drivers/clk/sunxi/clk-factors.c +++ b/drivers/clk/sunxi/clk-factors.c @@ -62,7 +62,7 @@ static unsigned long clk_factors_recalc_rate(struct clk_hw *hw, p = FACTOR_GET(config->pshift, config->pwidth, reg); /* Calculate the rate */ - rate = (parent_rate * n * (k + 1) >> p) / (m + 1); + rate = (parent_rate * (n + config->n_start) * (k + 1) >> p) / (m + 1); return rate; } |