patch-2.1.124 linux/drivers/net/apne.c

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

diff -u --recursive --new-file v2.1.123/linux/drivers/net/apne.c linux/drivers/net/apne.c
@@ -577,13 +577,13 @@
 
 void cleanup_module(void)
 {
-	unregister_netdev(&apne_dev);
-
 	pcmcia_disable_irq();
 
 	free_irq(IRQ_AMIGA_PORTS, &apne_dev);
 
 	pcmcia_reset();
+
+	unregister_netdev(&apne_dev);
 
 	unlock_8390_module();
 }

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