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: Chao Xie <chao.xie@marvell.com> Signed-off-by: Mike Turquette <mturquette@linaro.org>
This commit is contained in:
Родитель
43080568f7
Коммит
7433ab43fa
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче