xloader: Panda - bugfix missing while body
authorAndy Green <andy.green@linaro.org>
Wed, 9 Feb 2011 14:40:50 +0000 (14:40 +0000)
committerAnand Gadiyar <gadiyar@ti.com>
Mon, 14 Mar 2011 07:15:45 +0000 (12:45 +0530)
It looks like there is a missing ; that brings the following sr32
into the loop body.  That probably wasn't intentional and could
lead to unreliable ordering of the completion check and possibly
no sr32 following completion.

Signed-off-by: Andy Green <andy.green@linaro.org>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
board/omap4430panda/clock.c

index 80432f4..282e670 100644 (file)
@@ -737,8 +737,9 @@ static void enable_all_clocks(void)
 
        /* Check for DSS Clocks */
        while (((*(volatile int *)0x4A009100) & 0xF00) != 0xE00)
-               /* Set HW_AUTO transition mode */
-               sr32(CM_DSS_CLKSTCTRL, 0, 32, 0x3);
+               ;
+       /* Set HW_AUTO transition mode */
+       sr32(CM_DSS_CLKSTCTRL, 0, 32, 0x3);
 
        /* Enable SGX clocks */
        sr32(CM_SGX_CLKSTCTRL, 0, 32, 0x2);