diff options
author | Nicholas Mc Guire | 2015-02-04 09:07:40 +0100 |
---|---|---|
committer | Kalle Valo | 2015-02-06 07:44:58 +0100 |
commit | 3427da4597ae2bf909a7f6f0c7bc48b07215c009 (patch) | |
tree | 1aa72fc788d350aa468fafb7993605ee34d3837b /drivers/net/wireless/orinoco | |
parent | orinoco: orinoco_plx use msecs_to_jiffies for conversion (diff) | |
download | kernel-qcow2-linux-3427da4597ae2bf909a7f6f0c7bc48b07215c009.tar.gz kernel-qcow2-linux-3427da4597ae2bf909a7f6f0c7bc48b07215c009.tar.xz kernel-qcow2-linux-3427da4597ae2bf909a7f6f0c7bc48b07215c009.zip |
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>
Diffstat (limited to 'drivers/net/wireless/orinoco')
-rw-r--r-- | drivers/net/wireless/orinoco/orinoco_pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/orinoco/orinoco_pci.c b/drivers/net/wireless/orinoco/orinoco_pci.c index b6bdad632842..74219d59d7e1 100644 --- a/drivers/net/wireless/orinoco/orinoco_pci.c +++ b/drivers/net/wireless/orinoco/orinoco_pci.c @@ -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); |