orinoco: orinoco_pci use msecs_to_jiffies for conversion
authorNicholas Mc Guire <hofrat@osadl.org>
Wed, 4 Feb 2015 08:07:40 +0000 (03:07 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 6 Feb 2015 06:44:58 +0000 (08:44 +0200)
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>
drivers/net/wireless/orinoco/orinoco_pci.c

index b6bdad63284232c6848a979eacb36c7c698b4ae9..74219d59d7e1e5d7d918b42acac99b913157a499 100644 (file)
@@ -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);