patch-2.1.88 linux/drivers/net/ni52.c

Next file: linux/drivers/net/ni65.c
Previous file: linux/drivers/net/ne.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.87/linux/drivers/net/ni52.c linux/drivers/net/ni52.c
@@ -1338,9 +1338,9 @@
 void cleanup_module(void)
 {
 	release_region(dev_ni52.base_addr, NI52_TOTAL_SIZE);
+	unregister_netdev(&dev_ni52);
 	kfree(dev_ni52.priv);
 	dev_ni52.priv = NULL;
-	unregister_netdev(&dev_ni52);
 }
 #endif /* MODULE */
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov