diff --git a/drivers/net/atlx/atl2.c b/drivers/net/atlx/atl2.c index f5bdc92..bfc334a 100644 --- a/drivers/net/atlx/atl2.c +++ b/drivers/net/atlx/atl2.c @@ -1553,6 +1553,7 @@ static int atl2_suspend(struct pci_dev *pdev, pm_message_t state) if (netif_running(netdev)) { WARN_ON(test_bit(__ATL2_RESETTING, &adapter->flags)); atl2_down(adapter); + atl2_free_irq(adapter); } #ifdef CONFIG_PM @@ -1654,9 +1655,6 @@ wol_dis: pci_enable_wake(pdev, pci_choose_state(pdev, state), 0); suspend_exit: - if (netif_running(netdev)) - atl2_free_irq(adapter); - pci_disable_device(pdev); pci_set_power_state(pdev, pci_choose_state(pdev, state));