Commit 0371fa4f authored by Wei Yongjun's avatar Wei Yongjun Committed by Greg Kroah-Hartman

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: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 35092b6d
...@@ -3460,9 +3460,8 @@ int ks_wlan_net_start(struct net_device *dev) ...@@ -3460,9 +3460,8 @@ int ks_wlan_net_start(struct net_device *dev)
/* phy information update timer */ /* phy information update timer */
atomic_set(&update_phyinfo, 0); atomic_set(&update_phyinfo, 0);
init_timer(&update_phyinfo_timer); setup_timer(&update_phyinfo_timer, ks_wlan_update_phyinfo_timeout,
update_phyinfo_timer.function = ks_wlan_update_phyinfo_timeout; (unsigned long)priv);
update_phyinfo_timer.data = (unsigned long)priv;
/* dummy address set */ /* dummy address set */
memcpy(priv->eth_addr, dummy_addr, ETH_ALEN); memcpy(priv->eth_addr, dummy_addr, ETH_ALEN);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment