]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
a320evb: fix udelay / __udelay confusion
authorWolfgang Denk <wd@denx.de>
Fri, 21 May 2010 21:14:53 +0000 (23:14 +0200)
committerWolfgang Denk <wd@denx.de>
Fri, 21 May 2010 21:14:53 +0000 (23:14 +0200)
Fix the following compiler problems:

arch/arm/cpu/arm920t/a320/liba320.a(timer.o): In function `udelay':
/home/wd/git/u-boot/work/arch/arm/cpu/arm920t/a320/timer.c:160: multiple definition of `udelay'
lib/libgeneric.a(time.o):/home/wd/git/u-boot/work/lib/time.c:34: first defined here
lib/libgeneric.a(time.o): In function `udelay':
time.c:(.text+0x1c): undefined reference to `__udelay'

Signed-off-by: Wolfgang Denk <wd@denx.de>
arch/arm/cpu/arm920t/a320/timer.c

index d69dbff0e15b29d3ec999c6c77c7cce8e5425929..d2e316fd54cf5f1c5ebf99f3c59023b679ab9fb2 100644 (file)
@@ -156,7 +156,7 @@ void set_timer(ulong t)
 }
 
 /* delay x useconds AND preserve advance timestamp value */
-void udelay(unsigned long usec)
+void __udelay(unsigned long usec)
 {
        long tmo = usec * (TIMER_CLOCK / 1000) / 1000;
        unsigned long now, last = readl(&tmr->timer3_counter);