diff options
author | Arnd Bergmann <arnd@arndb.de> | 2012-04-20 12:56:15 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-04-21 21:28:48 +0200 |
commit | 3a22d5d5eb7bb0e521f3a0e76d20747cc7fb6798 (patch) | |
tree | 958a8e455adaf6d5e674a8cd14440d66e12f74be /drivers/net/ethernet | |
parent | donauboe: replace excessive udelay with msleep (diff) | |
download | linux-3a22d5d5eb7bb0e521f3a0e76d20747cc7fb6798.tar.xz linux-3a22d5d5eb7bb0e521f3a0e76d20747cc7fb6798.zip |
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: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/sun/sungem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/sun/sungem.c b/drivers/net/ethernet/sun/sungem.c index dfd4b1d13a51..dc065face7ac 100644 --- a/drivers/net/ethernet/sun/sungem.c +++ b/drivers/net/ethernet/sun/sungem.c @@ -401,7 +401,7 @@ static int gem_rxmac_reset(struct gem *gp) return 1; } - udelay(5000); + mdelay(5); /* Execute RX reset command. */ writel(gp->swrst_base | GREG_SWRST_RXRST, |