mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-08 11:41:37 -04:00
net: ti: netcp: use setup_timer
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>
This commit is contained in:
committed by
David S. Miller
parent
e53a84b2b4
commit
8447779637
@@ -3616,9 +3616,8 @@ static int gbe_probe(struct netcp_device *netcp_device, struct device *dev,
|
||||
}
|
||||
spin_unlock_bh(&gbe_dev->hw_stats_lock);
|
||||
|
||||
init_timer(&gbe_dev->timer);
|
||||
gbe_dev->timer.data = (unsigned long)gbe_dev;
|
||||
gbe_dev->timer.function = netcp_ethss_timer;
|
||||
setup_timer(&gbe_dev->timer, netcp_ethss_timer,
|
||||
(unsigned long)gbe_dev);
|
||||
gbe_dev->timer.expires = jiffies + GBE_TIMER_INTERVAL;
|
||||
add_timer(&gbe_dev->timer);
|
||||
*inst_priv = gbe_dev;
|
||||
|
||||
Reference in New Issue
Block a user