From: Siva Durga Prasad Paladugu Date: Wed, 12 Feb 2014 16:08:35 +0000 (+0530) Subject: arm: zynq: correct the argument to lldiv X-Git-Url: http://git.dujemihanovic.xyz/login.html?a=commitdiff_plain;h=e158665c1e4c4665302f0d95e26b7c7e6b70a83c;p=u-boot.git arm: zynq: correct the argument to lldiv Typecast the argument with unsigned long long for proper calculation of lldiv Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Michal Simek --- diff --git a/arch/arm/cpu/armv7/zynq/timer.c b/arch/arm/cpu/armv7/zynq/timer.c index 174e5a18f6..303dbcfcea 100644 --- a/arch/arm/cpu/armv7/zynq/timer.c +++ b/arch/arm/cpu/armv7/zynq/timer.c @@ -110,7 +110,8 @@ void __udelay(unsigned long usec) if (usec == 0) return; - countticks = lldiv(gd->arch.timer_rate_hz * usec, 1000000); + countticks = lldiv(((unsigned long long)gd->arch.timer_rate_hz * usec), + 1000000); /* decrementing timer */ timeend = readl(&timer_base->counter) - countticks;