diff options
author | Hiroshi DOYU <Hiroshi.DOYU@nokia.com> | 2009-09-28 20:21:26 +0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2009-09-28 20:21:26 +0400 |
commit | 055c49d285a151ccb91d63bac6d8621be3db5c93 (patch) | |
tree | 372a42a8a4245f857acf0b470247bd570481f768 /arch/arm/mach-omap2/mailbox.c | |
parent | 0fd92a15a01e6a57c1bbc816c574ec135c1c482e (diff) | |
download | linux-055c49d285a151ccb91d63bac6d8621be3db5c93.tar.xz |
omap: Fix wrong condition check in while loop for mailbox and iommu2
It's worked fine so far since reset is done for the first time.
Reported-by: Juha Leppanen <juha_motorsportcom@luukku.com>
Signed-off-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
Signed-off-by: Juha Leppanen <juha_motorsportcom@luukku.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/mailbox.c')
-rw-r--r-- | arch/arm/mach-omap2/mailbox.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/mailbox.c b/arch/arm/mach-omap2/mailbox.c index f3fefca58494..c035ad3426d0 100644 --- a/arch/arm/mach-omap2/mailbox.c +++ b/arch/arm/mach-omap2/mailbox.c @@ -93,7 +93,7 @@ static int omap2_mbox_startup(struct omap_mbox *mbox) l = mbox_read_reg(MAILBOX_SYSSTATUS); if (l & RESETDONE) break; - } while (time_after(jiffies, timeout)); + } while (!time_after(jiffies, timeout)); if (!(l & RESETDONE)) { pr_err("Can't take mmu out of reset\n"); |