OMAP2 clock/powerdomain: off by 1 error in loop timeout comparisons
authorRoel Kluin <roel.kluin@gmail.com>
Sat, 20 Jun 2009 01:08:30 +0000 (19:08 -0600)
committerpaul <paul@twilight.(none)>
Sat, 20 Jun 2009 01:09:32 +0000 (19:09 -0600)
commit2687069f3ac297b820c58de7222e4d16adbca498
tree8257b9f02f998e9069364508b6a26a8b63b796fb
parent7b7bcefa35d62fec64c3615a6bef7866f34c7cc9
OMAP2 clock/powerdomain: off by 1 error in loop timeout comparisons

with while (i++ < MAX_CLOCK_ENABLE_WAIT); i can reach MAX_CLOCK_ENABLE_WAIT + 1
after the loop, so if (i == MAX_CLOCK_ENABLE_WAIT) that's still success.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/mach-omap2/clock.c
arch/arm/mach-omap2/powerdomain.c