From: Grazvydas Ignotas Date: Wed, 22 Oct 2008 20:05:11 +0000 (+0300) Subject: Revert "OMAP3 clock: put DPLL into bypass if bypass rate = clk->rate, not hardware... X-Git-Tag: Release-2010-05/1~2^2~208 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e304117a159285ea848ee62bba562c1d0df8cf4;p=pandora-kernel.git Revert "OMAP3 clock: put DPLL into bypass if bypass rate = clk->rate, not hardware rate" This reverts commit 8b1f0bd44fe490ec631230c8c040753a2bda8caa and fixes compile. This revert is to fix EHCI, which dies because of this patch. --- diff --git a/arch/arm/mach-omap2/clock34xx.c b/arch/arm/mach-omap2/clock34xx.c index cc43f4f2a547..eeec5f174401 100644 --- a/arch/arm/mach-omap2/clock34xx.c +++ b/arch/arm/mach-omap2/clock34xx.c @@ -272,6 +272,7 @@ static int omap3_noncore_dpll_enable(struct clk *clk) { int r; struct dpll_data *dd; + u32 rate; if (clk == &dpll3_ck) return -EINVAL; @@ -280,7 +281,9 @@ static int omap3_noncore_dpll_enable(struct clk *clk) if (!dd) return -EINVAL; - if (clk->rate == dd->bypass_clk->rate) + rate = omap2_get_dpll_rate(clk); + + if (dd->bypass_clk->rate == rate) r = _omap3_noncore_dpll_bypass(clk); else r = _omap3_noncore_dpll_lock(clk);