Fix suspend/resume problems with b44

From: Pavel Machek
Date: Tue Mar 08 2005 - 05:32:11 EST


Hi!

This should fix problems people have with b44 during
suspend/resume. Please apply,
Pavel

--- clean/drivers/net/b44.c 2004-12-25 13:35:00.000000000 +0100
+++ linux/drivers/net/b44.c 2005-01-19 11:59:12.000000000 +0100
@@ -1921,6 +1921,8 @@
b44_free_rings(bp);

spin_unlock_irq(&bp->lock);
+
+ free_irq(dev->irq, dev);
return 0;
}

@@ -1934,6 +1936,9 @@
if (!netif_running(dev))
return 0;

+ if (request_irq(dev->irq, b44_interrupt, SA_SHIRQ, dev->name, dev))
+ printk(KERN_ERR PFX "%s: request_irq failed\n", dev->name);
+
spin_lock_irq(&bp->lock);

b44_init_rings(bp);

--
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html