diff options
Diffstat (limited to 'drivers/net/igb')
-rw-r--r-- | drivers/net/igb/igb_main.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/drivers/net/igb/igb_main.c b/drivers/net/igb/igb_main.c index 3fd2efa91cb2..4853a74843ec 100644 --- a/drivers/net/igb/igb_main.c +++ b/drivers/net/igb/igb_main.c | |||
@@ -1312,13 +1312,10 @@ static int __devinit igb_probe(struct pci_dev *pdev, | |||
1312 | goto err_eeprom; | 1312 | goto err_eeprom; |
1313 | } | 1313 | } |
1314 | 1314 | ||
1315 | init_timer(&adapter->watchdog_timer); | 1315 | setup_timer(&adapter->watchdog_timer, &igb_watchdog, |
1316 | adapter->watchdog_timer.function = &igb_watchdog; | 1316 | (unsigned long) adapter); |
1317 | adapter->watchdog_timer.data = (unsigned long) adapter; | 1317 | setup_timer(&adapter->phy_info_timer, &igb_update_phy_info, |
1318 | 1318 | (unsigned long) adapter); | |
1319 | init_timer(&adapter->phy_info_timer); | ||
1320 | adapter->phy_info_timer.function = &igb_update_phy_info; | ||
1321 | adapter->phy_info_timer.data = (unsigned long) adapter; | ||
1322 | 1319 | ||
1323 | INIT_WORK(&adapter->reset_task, igb_reset_task); | 1320 | INIT_WORK(&adapter->reset_task, igb_reset_task); |
1324 | INIT_WORK(&adapter->watchdog_task, igb_watchdog_task); | 1321 | INIT_WORK(&adapter->watchdog_task, igb_watchdog_task); |