summaryrefslogtreecommitdiffstats
path: root/drivers/clk/clk-si5351.c
diff options
context:
space:
mode:
authorMarek Belisko <marek.belisko@gmail.com>2013-05-03 07:53:22 +0200
committerMike Turquette <mturquette@linaro.org>2013-05-29 15:09:15 -0700
commit67e1e2268e598861dc771e3c976daf07db380638 (patch)
tree35318b5ab04a258c7da38578f2d614f6a8461b58 /drivers/clk/clk-si5351.c
parent056f3d58db6f7d19be7dbc2aab8d049f28e20d6e (diff)
downloadlinux-67e1e2268e598861dc771e3c976daf07db380638.tar.bz2
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/clk-si5351.c')
-rw-r--r--drivers/clk/clk-si5351.c2
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;