diff options
author | Axel Lin <axel.lin@ingics.com> | 2015-03-03 20:04:55 +0800 |
---|---|---|
committer | Kishon Vijay Abraham I <kishon@ti.com> | 2015-03-12 11:01:17 +0530 |
commit | a5e5d3c0b239a67d712995f37140e354b5547003 (patch) | |
tree | a0751d5769aac0915909cd74de2c9f5b404d6acc /drivers | |
parent | bd4abc2f96dd06c0085112240aed74c96538d6e7 (diff) | |
download | blackbird-op-linux-a5e5d3c0b239a67d712995f37140e354b5547003.tar.gz blackbird-op-linux-a5e5d3c0b239a67d712995f37140e354b5547003.zip |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/phy/phy-ti-pipe3.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/phy/phy-ti-pipe3.c b/drivers/phy/phy-ti-pipe3.c index 95c88f929f27..ed72b0d01dde 100644 --- a/drivers/phy/phy-ti-pipe3.c +++ b/drivers/phy/phy-ti-pipe3.c @@ -165,15 +165,11 @@ static int ti_pipe3_dpll_wait_lock(struct ti_pipe3 *phy) cpu_relax(); val = ti_pipe3_readl(phy->pll_ctrl_base, PLL_STATUS); if (val & PLL_LOCK) - break; + return 0; } while (!time_after(jiffies, timeout)); - if (!(val & PLL_LOCK)) { - dev_err(phy->dev, "DPLL failed to lock\n"); - return -EBUSY; - } - - return 0; + dev_err(phy->dev, "DPLL failed to lock\n"); + return -EBUSY; } static int ti_pipe3_dpll_program(struct ti_pipe3 *phy) |