aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-omap2/clock34xx.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/arch/arm/mach-omap2/clock34xx.c b/arch/arm/mach-omap2/clock34xx.c
index aad77e0d43c7..3d756babb2f4 100644
--- a/arch/arm/mach-omap2/clock34xx.c
+++ b/arch/arm/mach-omap2/clock34xx.c
@@ -398,19 +398,14 @@ static int _omap3_noncore_dpll_lock(struct clk *clk)
398 398
399 ai = omap3_dpll_autoidle_read(clk); 399 ai = omap3_dpll_autoidle_read(clk);
400 400
401 omap3_dpll_deny_idle(clk);
402
401 _omap3_dpll_write_clken(clk, DPLL_LOCKED); 403 _omap3_dpll_write_clken(clk, DPLL_LOCKED);
402 404
403 if (ai) { 405 r = _omap3_wait_dpll_status(clk, 1);
404 /* 406
405 * If no downstream clocks are enabled, CM_IDLEST bit 407 if (ai)
406 * may never become active, so don't wait for DPLL to lock.
407 */
408 r = 0;
409 omap3_dpll_allow_idle(clk); 408 omap3_dpll_allow_idle(clk);
410 } else {
411 r = _omap3_wait_dpll_status(clk, 1);
412 omap3_dpll_deny_idle(clk);
413 };
414 409
415 return r; 410 return r;
416} 411}