summaryrefslogtreecommitdiffstats
path: root/drivers/net/smc-ultra.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/smc-ultra.c')
-rw-r--r--drivers/net/smc-ultra.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/smc-ultra.c b/drivers/net/smc-ultra.c
index 16af6660c..6a5555983 100644
--- a/drivers/net/smc-ultra.c
+++ b/drivers/net/smc-ultra.c
@@ -480,14 +480,14 @@ cleanup_module(void)
for (this_dev = 0; this_dev < MAX_ULTRA_CARDS; this_dev++) {
struct net_device *dev = &dev_ultra[this_dev];
if (dev->priv != NULL) {
- /* NB: ultra_close_card() does free_irq + irq2dev */
+ /* NB: ultra_close_card() does free_irq */
int ioaddr = dev->base_addr - ULTRA_NIC_OFFSET;
- kfree(dev->priv);
- release_region(ioaddr, ULTRA_IO_EXTENT);
unregister_netdev(dev);
- dev->priv = NULL;
+ release_region(ioaddr, ULTRA_IO_EXTENT);
+ kfree(dev->priv);
}
}
+ unlock_8390_module();
}
#endif /* MODULE */