File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -1669,9 +1669,9 @@ static int amd8111e_resume(struct pci_dev *pci_dev)
1669
1669
return 0 ;
1670
1670
}
1671
1671
1672
- static void amd8111e_config_ipg (struct net_device * dev )
1672
+ static void amd8111e_config_ipg (struct timer_list * t )
1673
1673
{
1674
- struct amd8111e_priv * lp = netdev_priv ( dev );
1674
+ struct amd8111e_priv * lp = from_timer ( lp , t , ipg_data . ipg_timer );
1675
1675
struct ipg_info * ipg_data = & lp -> ipg_data ;
1676
1676
void __iomem * mmio = lp -> mmio ;
1677
1677
unsigned int prev_col_cnt = ipg_data -> col_cnt ;
@@ -1883,8 +1883,7 @@ static int amd8111e_probe_one(struct pci_dev *pdev,
1883
1883
1884
1884
/* Initialize software ipg timer */
1885
1885
if (lp -> options & OPTION_DYN_IPG_ENABLE ){
1886
- setup_timer (& lp -> ipg_data .ipg_timer ,
1887
- (void * )& amd8111e_config_ipg , (unsigned long )dev );
1886
+ timer_setup (& lp -> ipg_data .ipg_timer , amd8111e_config_ipg , 0 );
1888
1887
lp -> ipg_data .ipg_timer .expires = jiffies +
1889
1888
IPG_CONVERGE_JIFFIES ;
1890
1889
lp -> ipg_data .ipg = DEFAULT_IPG ;
You can’t perform that action at this time.
0 commit comments