From: Ben Hutchings Date: Sun, 9 Mar 2014 04:03:22 +0000 (+0000) Subject: bna: Replace large udelay() with mdelay() X-Git-Tag: v3.14-rc7~10^2~24 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bc48bc806442114ea44f61d6b18e02c2bd6236fd;p=profile%2Fivi%2Fkernel-x86-ivi.git bna: Replace large udelay() with mdelay() udelay() does not work on some architectures for values above 2000, in particular on ARM: ERROR: "__bad_udelay" [drivers/net/ethernet/brocade/bna/bna.ko] undefined! Reported-by: Vagrant Cascadian Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/brocade/bna/bfa_ioc.c b/drivers/net/ethernet/brocade/bna/bfa_ioc.c index 1803c39..354ae97 100644 --- a/drivers/net/ethernet/brocade/bna/bfa_ioc.c +++ b/drivers/net/ethernet/brocade/bna/bfa_ioc.c @@ -1704,7 +1704,7 @@ bfa_flash_sem_get(void __iomem *bar) while (!bfa_raw_sem_get(bar)) { if (--n <= 0) return BFA_STATUS_BADFLASH; - udelay(10000); + mdelay(10); } return BFA_STATUS_OK; }