From: Arnd Bergmann Date: Fri, 20 Apr 2012 10:56:15 +0000 (+0000) Subject: sungem: use mdelay instead of udelay where necessary X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3a22d5d5eb7bb0e521f3a0e76d20747cc7fb6798;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git 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 Signed-off-by: Mathieu Poirier Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/sun/sungem.c b/drivers/net/ethernet/sun/sungem.c index dfd4b1d13a5..dc065face7a 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,