diff mbox

[1/3] OMAP3 clock: Fix the DPLL freqsel computations

Message ID 20091116133649.14128.89383.stgit@localhost.localdomain (mailing list archive)
State Accepted
Commit 8c3b128f6b50f9b8a6b015afeead77fd6de366a6
Delegated to: Tony Lindgren
Headers show

Commit Message

Paul Walmsley Nov. 16, 2009, 1:36 p.m. UTC
None
diff mbox

Patch

diff --git a/arch/arm/mach-omap2/clock34xx.c b/arch/arm/mach-omap2/clock34xx.c
index c258f87..225c1a7 100644
--- a/arch/arm/mach-omap2/clock34xx.c
+++ b/arch/arm/mach-omap2/clock34xx.c
@@ -473,7 +473,7 @@  static u16 _omap3_dpll_compute_freqsel(struct clk *clk, u8 n)
 	unsigned long fint;
 	u16 f = 0;
 
-	fint = clk->dpll_data->clk_ref->rate / (n + 1);
+	fint = clk->dpll_data->clk_ref->rate / n;
 
 	pr_debug("clock: fint is %lu\n", fint);