From: Nicholas Mc Guire Date: Tue, 3 Feb 2015 08:45:11 +0000 (-0500) Subject: tlan: msecs_to_jiffies convrsion X-Git-Tag: v4.0-rc1~133^2~71 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b5057dd79c2db9a2be5306fdcdb2eae5c9c0e109;p=platform%2Fkernel%2Flinux-exynos.git tlan: msecs_to_jiffies convrsion This is only an API consolidation and should make things more readable it replaces var * HZ / 1000 by msecs_to_jiffies(var). As there is a discrepancy between the code and the comments this is in a separate patch. Signed-off-by: Nicholas Mc Guire Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/ti/tlan.c b/drivers/net/ethernet/ti/tlan.c index 1f722c9..691ec93 100644 --- a/drivers/net/ethernet/ti/tlan.c +++ b/drivers/net/ethernet/ti/tlan.c @@ -2561,7 +2561,7 @@ static void tlan_phy_power_up(struct net_device *dev) * transceiver. The TLAN docs say both 50 ms and * 500 ms, so do the longer, just in case. */ - tlan_set_timer(dev, (HZ/20), TLAN_TIMER_PHY_RESET); + tlan_set_timer(dev, msecs_to_jiffies(500), TLAN_TIMER_PHY_RESET); }