]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
3c59x: Ensure to apply the expires time
authorStafford Horne <shorne@gmail.com>
Sun, 28 Feb 2016 07:49:29 +0000 (16:49 +0900)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Feb 2016 04:39:26 +0000 (23:39 -0500)
In commit 5b6490def9168af6a ("3c59x: Use setup_timer()") Amitoj
removed add_timer which sets up the epires timer.  In this patch
the behavior is restore but it uses mod_timer which is a bit more
compact.

Signed-off-by: Stafford Horne <shorne@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/3com/3c59x.c

index c377607e674582d256449fd1a222f5f769f95918..7b881edc0b0af565212b41d79e0c1768ae61e7e8 100644 (file)
@@ -1602,7 +1602,7 @@ vortex_up(struct net_device *dev)
        }
 
        setup_timer(&vp->timer, vortex_timer, (unsigned long)dev);
-       vp->timer.expires = RUN_AT(media_tbl[dev->if_port].wait);
+       mod_timer(&vp->timer, RUN_AT(media_tbl[dev->if_port].wait));
        setup_timer(&vp->rx_oom_timer, rx_oom_timer, (unsigned long)dev);
 
        if (vortex_debug > 1)