Commit 1dc6ca07 authored by Javier Achirica's avatar Javier Achirica Committed by Jeff Garzik

[wireless airo] safer shutdown sequence

changes the card shutdown sequence to a safer one
parent 02d5adae
...@@ -1603,6 +1603,8 @@ void stop_airo_card( struct net_device *dev, int freeres ) ...@@ -1603,6 +1603,8 @@ void stop_airo_card( struct net_device *dev, int freeres )
{ {
struct airo_info *ai = dev->priv; struct airo_info *ai = dev->priv;
flush_scheduled_work(); flush_scheduled_work();
disable_interrupts(ai);
free_irq( dev->irq, dev );
if (ai->flash) if (ai->flash)
kfree(ai->flash); kfree(ai->flash);
if (ai->rssi) if (ai->rssi)
...@@ -1617,8 +1619,6 @@ void stop_airo_card( struct net_device *dev, int freeres ) ...@@ -1617,8 +1619,6 @@ void stop_airo_card( struct net_device *dev, int freeres )
} }
ai->registered = 0; ai->registered = 0;
} }
disable_interrupts(ai);
free_irq( dev->irq, dev );
if (auto_wep) del_timer_sync(&ai->timer); if (auto_wep) del_timer_sync(&ai->timer);
if (freeres) { if (freeres) {
/* PCMCIA frees this stuff, so only for PCI and ISA */ /* PCMCIA frees this stuff, so only for PCI and ISA */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment