diff options
author | Anatolij Gustschin <agust@denx.de> | 2011-10-12 06:31:39 +0400 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-10-22 03:16:08 +0400 |
commit | c4c9fbebae6a62d538817d0ccee698adaafc5d66 (patch) | |
tree | 91e9e2b82568b32bf3135bdc25d0a852f6c31095 /lib | |
parent | 712fbcf384b7fbe6118325f21dad98150b24f13b (diff) | |
download | u-boot-c4c9fbebae6a62d538817d0ccee698adaafc5d66.tar.xz |
consolidate mdelay by providing a common function for all users
There are several mdelay() definitions in the driver and
board code. Remove them all and provide a common mdelay()
in lib/time.c.
Signed-off-by: Anatolij Gustschin <agust@denx.de>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/time.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/time.c b/lib/time.c index a309c2613a..6e2937b8e7 100644 --- a/lib/time.c +++ b/lib/time.c @@ -41,3 +41,9 @@ void udelay(unsigned long usec) usec -= kv; } while(usec); } + +void mdelay(unsigned long msec) +{ + while (msec--) + udelay(1000); +} |