mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-23 19:14:30 +08:00
orinoco: orinoco_pci use msecs_to_jiffies for conversion
This is only an API consolidation and should make things more readable it replaces var * HZ / 1000 by msecs_to_jiffies(var). Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
ab458cc85f
commit
3427da4597
@ -94,7 +94,7 @@ static int orinoco_pci_cor_reset(struct orinoco_private *priv)
|
||||
mdelay(HERMES_PCI_COR_OFFT);
|
||||
|
||||
/* The card is ready when it's no longer busy */
|
||||
timeout = jiffies + (HERMES_PCI_COR_BUSYT * HZ / 1000);
|
||||
timeout = jiffies + msecs_to_jiffies(HERMES_PCI_COR_BUSYT);
|
||||
reg = hermes_read_regn(hw, CMD);
|
||||
while (time_before(jiffies, timeout) && (reg & HERMES_CMD_BUSY)) {
|
||||
mdelay(1);
|
||||
|
Loading…
Reference in New Issue
Block a user