Commit 3a22d5d5 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by David S. Miller

sungem: use mdelay instead of udelay where necessary

Some architectures like ARM cannot handle large numbers as
arguments to udelay, so the drivers should use mdelay when
delaying for multiple miliseconds.
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 32fd32a5
...@@ -401,7 +401,7 @@ static int gem_rxmac_reset(struct gem *gp) ...@@ -401,7 +401,7 @@ static int gem_rxmac_reset(struct gem *gp)
return 1; return 1;
} }
udelay(5000); mdelay(5);
/* Execute RX reset command. */ /* Execute RX reset command. */
writel(gp->swrst_base | GREG_SWRST_RXRST, writel(gp->swrst_base | GREG_SWRST_RXRST,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment