summaryrefslogtreecommitdiff
path: root/drivers/net/ftgmac100.c
diff options
context:
space:
mode:
authorAnatolij Gustschin <agust@denx.de>2011-10-12 02:31:39 +0000
committerWolfgang Denk <wd@denx.de>2011-10-22 01:16:08 +0200
commitc4c9fbebae6a62d538817d0ccee698adaafc5d66 (patch)
tree91e9e2b82568b32bf3135bdc25d0a852f6c31095 /drivers/net/ftgmac100.c
parent712fbcf384b7fbe6118325f21dad98150b24f13b (diff)
downloadu-boot-imx-c4c9fbebae6a62d538817d0ccee698adaafc5d66.zip
u-boot-imx-c4c9fbebae6a62d538817d0ccee698adaafc5d66.tar.gz
u-boot-imx-c4c9fbebae6a62d538817d0ccee698adaafc5d66.tar.bz2
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 'drivers/net/ftgmac100.c')
-rw-r--r--drivers/net/ftgmac100.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ftgmac100.c b/drivers/net/ftgmac100.c
index 821840f..0af0c34 100644
--- a/drivers/net/ftgmac100.c
+++ b/drivers/net/ftgmac100.c
@@ -33,8 +33,6 @@
#define ETH_ZLEN 60
-#define mdelay(n) ({unsigned long msec = (n); while (msec--) udelay(1000); })
-
/* RBSR - hw default init value is also 0x640 */
#define RBSR_DEFAULT_VALUE 0x640