orinoco: orinoco_plx use msecs_to_jiffies for conversion
authorNicholas Mc Guire <hofrat@osadl.org>
Wed, 4 Feb 2015 08:07:39 +0000 (03:07 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 6 Feb 2015 06:44:41 +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_plx.c

index b8f6e5c431aea3fd81d29bf8686903e5e6ece3dc..8b045236b6e0111b8661b0df0b8e5d428710f11d 100644 (file)
@@ -121,7 +121,7 @@ static int orinoco_plx_cor_reset(struct orinoco_private *priv)
        mdelay(1);
 
        /* Just in case, wait more until the card is no longer busy */
-       timeout = jiffies + (PLX_RESET_TIME * HZ / 1000);
+       timeout = jiffies + msecs_to_jiffies(PLX_RESET_TIME);
        reg = hermes_read_regn(hw, CMD);
        while (time_before(jiffies, timeout) && (reg & HERMES_CMD_BUSY)) {
                mdelay(1);