]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
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 636322a8e5728de647c8a333b0a2feb9b1b730ed..2be253c2c3d5ec29d2e7a50da9542701728d0340 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;