|
@@ -71,7 +71,7 @@ static int orinoco_tmd_cor_reset(struct orinoco_private *priv)
|
|
|
mdelay(1);
|
|
|
|
|
|
/* Just in case, wait more until the card is no longer busy */
|
|
|
- timeout = jiffies + (TMD_RESET_TIME * HZ / 1000);
|
|
|
+ timeout = jiffies + msecs_to_jiffies(TMD_RESET_TIME);
|
|
|
reg = hermes_read_regn(hw, CMD);
|
|
|
while (time_before(jiffies, timeout) && (reg & HERMES_CMD_BUSY)) {
|
|
|
mdelay(1);
|