phy: ti-pipe3: Simplify ti_pipe3_dpll_wait_lock implementation

Code simplification. No functional change.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
This commit is contained in:
Axel Lin 2015-03-03 20:04:55 +08:00 committed by Kishon Vijay Abraham I
parent bd4abc2f96
commit a5e5d3c0b2
1 changed files with 3 additions and 7 deletions

View File

@ -165,15 +165,11 @@ static int ti_pipe3_dpll_wait_lock(struct ti_pipe3 *phy)
cpu_relax(); cpu_relax();
val = ti_pipe3_readl(phy->pll_ctrl_base, PLL_STATUS); val = ti_pipe3_readl(phy->pll_ctrl_base, PLL_STATUS);
if (val & PLL_LOCK) if (val & PLL_LOCK)
break; return 0;
} while (!time_after(jiffies, timeout)); } while (!time_after(jiffies, timeout));
if (!(val & PLL_LOCK)) { dev_err(phy->dev, "DPLL failed to lock\n");
dev_err(phy->dev, "DPLL failed to lock\n"); return -EBUSY;
return -EBUSY;
}
return 0;
} }
static int ti_pipe3_dpll_program(struct ti_pipe3 *phy) static int ti_pipe3_dpll_program(struct ti_pipe3 *phy)