mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-19 02:04:19 +08:00
drivers: net: qlogic: 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
32db034501
commit
d4d8db71db
@ -3891,10 +3891,8 @@ static int ql3xxx_probe(struct pci_dev *pdev,
|
||||
INIT_DELAYED_WORK(&qdev->tx_timeout_work, ql_tx_timeout_work);
|
||||
INIT_DELAYED_WORK(&qdev->link_state_work, ql_link_state_machine_work);
|
||||
|
||||
init_timer(&qdev->adapter_timer);
|
||||
qdev->adapter_timer.function = ql3xxx_timer;
|
||||
setup_timer(&qdev->adapter_timer, ql3xxx_timer, (unsigned long)qdev);
|
||||
qdev->adapter_timer.expires = jiffies + HZ * 2; /* two second delay */
|
||||
qdev->adapter_timer.data = (unsigned long)qdev;
|
||||
|
||||
if (!cards_found) {
|
||||
pr_alert("%s\n", DRV_STRING);
|
||||
|
Loading…
Reference in New Issue
Block a user