[U-Boot] [PATCH 2/4] lin_gadget: use common mdelay

Mike Frysinger vapier at gentoo.org
Tue Apr 10 01:39:54 CEST 2012


No need to provide our own mdelay() macro when we have a func for it.

Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
 include/usb/lin_gadget_compat.h |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/include/usb/lin_gadget_compat.h b/include/usb/lin_gadget_compat.h
index fce3be7..1b937e4 100644
--- a/include/usb/lin_gadget_compat.h
+++ b/include/usb/lin_gadget_compat.h
@@ -52,7 +52,6 @@
 
 #define kmalloc(size, type) memalign(CONFIG_SYS_CACHELINE_SIZE, size)
 #define kfree(addr) free(addr)
-#define mdelay(n) ({unsigned long msec = (n); while (msec--) udelay(1000); })
 
 #define __iomem
 #define min_t min
-- 
1.7.8.5



More information about the U-Boot mailing list