From 2b61f14cef259c1c59b183852d345006ccd912da Mon Sep 17 00:00:00 2001 From: XazZ Date: Sun, 4 May 2008 20:25:44 +0200 Subject: [PATCH] move some IRQ stuff (attempting to fix an oops) --- pci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pci.c b/pci.c index a6ab162..d244979 100644 --- a/pci.c +++ b/pci.c @@ -1841,8 +1841,8 @@ static void __devexit acxpci_e_remove(struct pci_dev *pdev) pci_disable_device(pdev); /* remove dev registration */ + pci_set_drvdata(pdev, NULL); - free_irq(adev->irq, adev); acx_sem_unlock(adev); /* Free netdev (quite late, @@ -2162,6 +2162,7 @@ static void acxpci_e_close(struct ieee80211_hw *hw) /* disable all IRQs, release shared IRQ handler */ write_reg16(adev, IO_ACX_IRQ_MASK, 0xffff); write_reg16(adev, IO_ACX_FEMR, 0x0); + free_irq(adev->irq, adev); /* TODO: pci_set_power_state(pdev, PCI_D3hot); ? */ -- 2.11.4.GIT