mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-25 19:07:46 +00:00
staging: ks7010: ks_wlan_net: Use setup_timer instead of init_timer and data fields
Use setup_timer function instead of initializing timer with the function and data fields Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
35092b6d9b
commit
0371fa4f6a
@ -3460,9 +3460,8 @@ int ks_wlan_net_start(struct net_device *dev)
|
||||
|
||||
/* phy information update timer */
|
||||
atomic_set(&update_phyinfo, 0);
|
||||
init_timer(&update_phyinfo_timer);
|
||||
update_phyinfo_timer.function = ks_wlan_update_phyinfo_timeout;
|
||||
update_phyinfo_timer.data = (unsigned long)priv;
|
||||
setup_timer(&update_phyinfo_timer, ks_wlan_update_phyinfo_timeout,
|
||||
(unsigned long)priv);
|
||||
|
||||
/* dummy address set */
|
||||
memcpy(priv->eth_addr, dummy_addr, ETH_ALEN);
|
||||
|
Loading…
Reference in New Issue
Block a user