diff options
author | Ben Hutchings <ben@decadent.org.uk> | 2014-03-09 05:03:22 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-03-10 20:56:59 +0100 |
commit | bc48bc806442114ea44f61d6b18e02c2bd6236fd (patch) | |
tree | 7b21f08ed967e830c0c295d5dee597ae08a2bc7b /drivers | |
parent | pkt_sched: move the sanity test in qdisc_list_add() (diff) | |
download | linux-bc48bc806442114ea44f61d6b18e02c2bd6236fd.tar.xz 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')
-rw-r--r-- | drivers/net/ethernet/brocade/bna/bfa_ioc.c | 2 |
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; } |