sungem: use mdelay instead of udelay where necessary
authorArnd Bergmann <arnd@arndb.de>
Fri, 20 Apr 2012 10:56:15 +0000 (10:56 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 21 Apr 2012 19:28:48 +0000 (15:28 -0400)
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>
drivers/net/ethernet/sun/sungem.c

index dfd4b1d..dc065fa 100644 (file)
@@ -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,