mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-06 16:49:22 +00:00
drivers: net: amd8111e: 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>
This commit is contained in:
parent
af25c31d4b
commit
cec55a92a9
1 changed files with 2 additions and 3 deletions
|
@ -1883,9 +1883,8 @@ static int amd8111e_probe_one(struct pci_dev *pdev,
|
|||
|
||||
/* Initialize software ipg timer */
|
||||
if(lp->options & OPTION_DYN_IPG_ENABLE){
|
||||
init_timer(&lp->ipg_data.ipg_timer);
|
||||
lp->ipg_data.ipg_timer.data = (unsigned long) dev;
|
||||
lp->ipg_data.ipg_timer.function = (void *)&amd8111e_config_ipg;
|
||||
setup_timer(&lp->ipg_data.ipg_timer,
|
||||
(void *)&amd8111e_config_ipg, (unsigned long)dev);
|
||||
lp->ipg_data.ipg_timer.expires = jiffies +
|
||||
IPG_CONVERGE_JIFFIES;
|
||||
lp->ipg_data.ipg = DEFAULT_IPG;
|
||||
|
|
Loading…
Reference in a new issue