[SCSI] bfa: Replace large udelay() with mdelay()
udelay() does not work on some architectures for values above 2000, in particular on ARM: ERROR: "__bad_udelay" [drivers/scsi/bfa/bfa.ko] undefined! Reported-by: Vagrant Cascadian <vagrant@debian.org> Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
This commit is contained in:
parent
0284556009
commit
b367dcaa51
|
@ -7006,7 +7006,7 @@ bfa_flash_sem_get(void __iomem *bar)
|
||||||
while (!bfa_raw_sem_get(bar)) {
|
while (!bfa_raw_sem_get(bar)) {
|
||||||
if (--n <= 0)
|
if (--n <= 0)
|
||||||
return BFA_STATUS_BADFLASH;
|
return BFA_STATUS_BADFLASH;
|
||||||
udelay(10000);
|
mdelay(10);
|
||||||
}
|
}
|
||||||
return BFA_STATUS_OK;
|
return BFA_STATUS_OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue