summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2014-03-09 04:03:22 +0000
committerDavid S. Miller <davem@davemloft.net>2014-03-10 15:56:59 -0400
commitbc48bc806442114ea44f61d6b18e02c2bd6236fd (patch)
tree7b21f08ed967e830c0c295d5dee597ae08a2bc7b /drivers/net/ethernet
parent37314363cd65d19c71bea5f222e5108c93dc3c78 (diff)
downloadblackbird-op-linux-bc48bc806442114ea44f61d6b18e02c2bd6236fd.tar.gz
blackbird-op-linux-bc48bc806442114ea44f61d6b18e02c2bd6236fd.zip
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 <vagrant@debian.org> Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r--drivers/net/ethernet/brocade/bna/bfa_ioc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/brocade/bna/bfa_ioc.c b/drivers/net/ethernet/brocade/bna/bfa_ioc.c
index 1803c3959044..354ae9792bad 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;
}
OpenPOWER on IntegriCloud