diff options
author | Marek Belisko <marek.belisko@gmail.com> | 2013-05-03 07:53:22 +0200 |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2013-05-29 15:09:15 -0700 |
commit | 67e1e2268e598861dc771e3c976daf07db380638 (patch) | |
tree | 35318b5ab04a258c7da38578f2d614f6a8461b58 /drivers/clk | |
parent | 056f3d58db6f7d19be7dbc2aab8d049f28e20d6e (diff) | |
download | linux-3.10-67e1e2268e598861dc771e3c976daf07db380638.tar.gz linux-3.10-67e1e2268e598861dc771e3c976daf07db380638.tar.bz2 linux-3.10-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
Diffstat (limited to 'drivers/clk')
-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 892728412e9..cf39e530e6e 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; |