Skip to content

Commit

Permalink
sungem: use mdelay instead of udelay where necessary
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Arnd Bergmann authored and David S. Miller committed Apr 21, 2012
1 parent 32fd32a commit 3a22d5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/sun/sungem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3a22d5d

Please sign in to comment.