From patchwork Mon Nov 16 13:36:53 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Walmsley X-Patchwork-Id: 60367 X-Patchwork-Delegate: tony@atomide.com Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nAGDc6qd030949 for ; Mon, 16 Nov 2009 13:38:06 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753127AbZKPNh5 (ORCPT ); Mon, 16 Nov 2009 08:37:57 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753161AbZKPNh5 (ORCPT ); Mon, 16 Nov 2009 08:37:57 -0500 Received: from utopia.booyaka.com ([72.9.107.138]:49335 "EHLO utopia.booyaka.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752561AbZKPNh4 (ORCPT ); Mon, 16 Nov 2009 08:37:56 -0500 Received: (qmail 32304 invoked by uid 526); 16 Nov 2009 13:38:01 -0000 MBOX-Line: From nobody Mon Nov 16 06:36:53 2009 Subject: [PATCH 1/3] OMAP3 clock: Fix the DPLL freqsel computations To: linux-arm-kernel@lists.infradead.org From: Paul Walmsley Cc: Nishanth Menon , Hayati Bayrakdar , linux-omap@vger.kernel.org, Rajendra Nayak Date: Mon, 16 Nov 2009 06:36:53 -0700 Message-ID: <20091116133649.14128.89383.stgit@localhost.localdomain> In-Reply-To: <20091116133237.14128.39687.stgit@localhost.localdomain> References: <20091116133237.14128.39687.stgit@localhost.localdomain> User-Agent: StGit/0.15-rc1-9-gd8846-dirty MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org 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);