diff options
author | Allen Pais <allen.lkml@gmail.com> | 2017-09-21 22:34:53 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-09-21 11:44:41 -0700 |
commit | af25c31d4bf4bc7d4dea4c093af8b7704ef24f81 (patch) | |
tree | aa076e98e4efd627913a817500ac8116224f308a /drivers/net/ethernet/amd | |
parent | 4a9c07ed71c2b8d755ee585264f80dd2d82a8066 (diff) | |
download | linux-af25c31d4bf4bc7d4dea4c093af8b7704ef24f81.tar.bz2 |
drivers: net: amd: use setup_timer() helper.
Use setup_timer function instead of initializing timer with the
function and data fields.
Signed-off-by: Allen Pais <allen.lkml@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/amd')
-rw-r--r-- | drivers/net/ethernet/amd/sunlance.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/ethernet/amd/sunlance.c b/drivers/net/ethernet/amd/sunlance.c index 291ca5187f12..0183ffb9d3ba 100644 --- a/drivers/net/ethernet/amd/sunlance.c +++ b/drivers/net/ethernet/amd/sunlance.c @@ -1459,9 +1459,8 @@ no_link_test: * can occur from interrupts (ex. IPv6). So we * use a timer to try again later when necessary. -DaveM */ - init_timer(&lp->multicast_timer); - lp->multicast_timer.data = (unsigned long) dev; - lp->multicast_timer.function = lance_set_multicast_retry; + setup_timer(&lp->multicast_timer, lance_set_multicast_retry, + (unsigned long)dev); if (register_netdev(dev)) { printk(KERN_ERR "SunLance: Cannot register device.\n"); |