From c4c9fbebae6a62d538817d0ccee698adaafc5d66 Mon Sep 17 00:00:00 2001 From: Anatolij Gustschin Date: Wed, 12 Oct 2011 02:31:39 +0000 Subject: 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 Acked-by: Mike Frysinger --- lib/time.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/time.c') diff --git a/lib/time.c b/lib/time.c index a309c26..6e2937b 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); +} -- cgit v1.1