Commit 7433ab43 authored by Chao Xie's avatar Chao Xie Committed by Mike Turquette

clk: mmp: fix wrong mask when calculate denominator

The code has typo when calculate denominator. It should use
den_mask instead of num_mask.
Signed-off-by: default avatarChao Xie <chao.xie@marvell.com>
Signed-off-by: default avatarMike Turquette <mturquette@linaro.org>
parent 43080568
......@@ -64,7 +64,7 @@ static unsigned long clk_factor_recalc_rate(struct clk_hw *hw,
num = (val >> masks->num_shift) & masks->num_mask;
/* calculate denominator */
den = (val >> masks->den_shift) & masks->num_mask;
den = (val >> masks->den_shift) & masks->den_mask;
if (!den)
return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment