aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/prcm.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap2/prcm.c')
-rw-r--r--arch/arm/mach-omap2/prcm.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/arm/mach-omap2/prcm.c b/arch/arm/mach-omap2/prcm.c
index 9208b6e873ae..79637c2eaf64 100644
--- a/arch/arm/mach-omap2/prcm.c
+++ b/arch/arm/mach-omap2/prcm.c
@@ -241,9 +241,8 @@ int omap2_cm_wait_idlest(void __iomem *reg, u32 mask, const char *name)
241 BUG(); 241 BUG();
242 242
243 /* Wait for lock */ 243 /* Wait for lock */
244 while (((__raw_readl(reg) & mask) != ena) && 244 omap_test_timeout(((__raw_readl(reg) & mask) == ena),
245 (i++ < MAX_MODULE_ENABLE_WAIT)) 245 MAX_MODULE_ENABLE_WAIT, i);
246 udelay(1);
247 246
248 if (i < MAX_MODULE_ENABLE_WAIT) 247 if (i < MAX_MODULE_ENABLE_WAIT)
249 pr_debug("cm: Module associated with clock %s ready after %d " 248 pr_debug("cm: Module associated with clock %s ready after %d "