]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
bna: Replace large udelay() with mdelay()
authorBen Hutchings <ben@decadent.org.uk>
Sun, 9 Mar 2014 04:03:22 +0000 (04:03 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 Mar 2014 19:56:59 +0000 (15:56 -0400)
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>
drivers/net/ethernet/brocade/bna/bfa_ioc.c

index 1803c39590442d497d1cc7f543ef8148ac7e56ec..354ae9792badb329e89b0ab37f59ff78c73efd11 100644 (file)
@@ -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;
 }