diff options
author | Stephen Hemminger <shemminger@osdl.org> | 2006-05-08 18:11:32 -0400 |
---|---|---|
committer | Stephen Hemminger <shemminger@osdl.org> | 2006-05-08 19:00:27 -0400 |
commit | 72cb8529208020484cecd69bbf87719b50ee6313 (patch) | |
tree | 4baf2e535aab8df965d0bff818c63e7501cb7ff3 /drivers/net/sky2.c | |
parent | e71ebd73276cc21efc74aba4118ef037cd32e50a (diff) |
sky2: synchronize irq on remove
Need to make sure interrupt is not racing with unregister of
network device.
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Diffstat (limited to 'drivers/net/sky2.c')
-rw-r--r-- | drivers/net/sky2.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/sky2.c b/drivers/net/sky2.c index ea23da53677b..9b16c2a899e0 100644 --- a/drivers/net/sky2.c +++ b/drivers/net/sky2.c | |||
@@ -3327,6 +3327,8 @@ static void __devexit sky2_remove(struct pci_dev *pdev) | |||
3327 | del_timer_sync(&hw->idle_timer); | 3327 | del_timer_sync(&hw->idle_timer); |
3328 | 3328 | ||
3329 | sky2_write32(hw, B0_IMSK, 0); | 3329 | sky2_write32(hw, B0_IMSK, 0); |
3330 | synchronize_irq(hw->pdev->irq); | ||
3331 | |||
3330 | dev0 = hw->dev[0]; | 3332 | dev0 = hw->dev[0]; |
3331 | dev1 = hw->dev[1]; | 3333 | dev1 = hw->dev[1]; |
3332 | if (dev1) | 3334 | if (dev1) |