patch-2.1.62 linux/drivers/net/wd.c
Next file: linux/drivers/net/znet.c
Previous file: linux/drivers/net/wavelan.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Mon Nov 3 09:29:31 1997
- Orig file:
v2.1.61/linux/drivers/net/wd.c
- Orig date:
Sat Oct 25 02:44:16 1997
diff -u --recursive --new-file v2.1.61/linux/drivers/net/wd.c linux/drivers/net/wd.c
@@ -262,7 +262,7 @@
/* Allocate dev->priv and fill in 8390 specific dev fields. */
if (ethdev_init(dev)) {
printk (" unable to get memory for dev->priv.\n");
- free_irq(dev->irq, NULL);
+ free_irq(dev->irq, dev);
return -ENOMEM;
}
@@ -499,7 +499,7 @@
int ioaddr = dev->base_addr - WD_NIC_OFFSET;
kfree(dev->priv);
dev->priv = NULL;
- free_irq(dev->irq, NULL);
+ free_irq(dev->irq, dev);
release_region(ioaddr, WD_IO_EXTENT);
unregister_netdev(dev);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov