mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
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>
This commit is contained in:
committed by
Wolfgang Denk
parent
712fbcf384
commit
c4c9fbebae
@@ -41,3 +41,9 @@ void udelay(unsigned long usec)
|
||||
usec -= kv;
|
||||
} while(usec);
|
||||
}
|
||||
|
||||
void mdelay(unsigned long msec)
|
||||
{
|
||||
while (msec--)
|
||||
udelay(1000);
|
||||
}
|
||||
|
Reference in New Issue
Block a user