diff options
author | Marek Belisko <marek.belisko@gmail.com> | 2013-05-03 07:53:22 +0200 |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2013-05-30 00:09:15 +0200 |
commit | 67e1e2268e598861dc771e3c976daf07db380638 (patch) | |
tree | 35318b5ab04a258c7da38578f2d614f6a8461b58 | |
parent | clk: samsung: Add CLK_IGNORE_UNUSED flag for the sysreg clocks (diff) | |
download | linux-67e1e2268e598861dc771e3c976daf07db380638.tar.xz linux-67e1e2268e598861dc771e3c976daf07db380638.zip |
clk: si5351: Fix clkout rate computation.
Rate was incorrectly computed because we read from wrong divider register.
Signed-off-by: Marek Belisko <marek.belisko@streamunlimited.com>
Acked-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
Cc: stable@kernel.org
-rw-r--r-- | drivers/clk/clk-si5351.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/clk-si5351.c b/drivers/clk/clk-si5351.c index 892728412e9d..cf39e530e6e2 100644 --- a/drivers/clk/clk-si5351.c +++ b/drivers/clk/clk-si5351.c @@ -932,7 +932,7 @@ static unsigned long si5351_clkout_recalc_rate(struct clk_hw *hw, unsigned char reg; unsigned char rdiv; - if (hwdata->num > 5) + if (hwdata->num <= 5) reg = si5351_msynth_params_address(hwdata->num) + 2; else reg = SI5351_CLK6_7_OUTPUT_DIVIDER; |