ARM:zynq: Correct __udelay to use lldiv
authorTom Rini <trini@ti.com>
Thu, 5 Dec 2013 19:48:36 +0000 (14:48 -0500)
committerTom Rini <trini@ti.com>
Fri, 13 Dec 2013 14:16:20 +0000 (09:16 -0500)
Cc: Michal Simek <monstr@monstr.eu>
Signed-off-by: Tom Rini <trini@ti.com>
arch/arm/cpu/armv7/zynq/timer.c

index 636322a..2be253c 100644 (file)
@@ -107,8 +107,7 @@ void __udelay(unsigned long usec)
        if (usec == 0)
                return;
 
-       countticks = (u32) (((unsigned long long) TIMER_TICK_HZ * usec) /
-                                                               1000000);
+       countticks = lldiv(TIMER_TICK_HZ * usec, 1000000);
 
        /* decrementing timer */
        timeend = readl(&timer_base->counter) - countticks;