diff options
author | Chao Xie <chao.xie@marvell.com> | 2014-01-22 21:47:40 -0500 |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2014-03-26 23:59:26 -0400 |
commit | 7433ab43fa17094173f18a39f33c3a24d50b300f (patch) | |
tree | ef30b2379b79e79147fe8423edec340db009b22a /drivers/clk | |
parent | 43080568f7d5dc4e31d90246b9e80e9b4112975c (diff) |
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>
Diffstat (limited to 'drivers/clk')
-rw-r--r-- | drivers/clk/mmp/clk-frac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/mmp/clk-frac.c b/drivers/clk/mmp/clk-frac.c index 80c1dd15d15c..f6e7691c4efa 100644 --- a/drivers/clk/mmp/clk-frac.c +++ b/drivers/clk/mmp/clk-frac.c | |||
@@ -64,7 +64,7 @@ static unsigned long clk_factor_recalc_rate(struct clk_hw *hw, | |||
64 | num = (val >> masks->num_shift) & masks->num_mask; | 64 | num = (val >> masks->num_shift) & masks->num_mask; |
65 | 65 | ||
66 | /* calculate denominator */ | 66 | /* calculate denominator */ |
67 | den = (val >> masks->den_shift) & masks->num_mask; | 67 | den = (val >> masks->den_shift) & masks->den_mask; |
68 | 68 | ||
69 | if (!den) | 69 | if (!den) |
70 | return 0; | 70 | return 0; |