patch-2.3.99-pre3 linux/drivers/net/epic100.c

Next file: linux/drivers/net/irda/irport.c
Previous file: linux/drivers/net/defxx.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre2/linux/drivers/net/epic100.c linux/drivers/net/epic100.c
@@ -1099,6 +1099,12 @@
 	struct net_device *dev;
 	long ioaddr;
 	static int card_idx = -1;
+	static int printed_version = 0;
+	
+	if (!printed_version) {
+		printk (KERN_INFO "%s", version);
+		printed_version = 1;
+	}
 	
 	chip_idx = ent->driver_data;
 	
@@ -1280,13 +1286,7 @@
 
 static int __init epic100_init (void)
 {
-	printk (KERN_INFO "%s", version);
-	
-	if (pci_register_driver (&epic100_driver) > 0)
-		return 0;
-	
-	pci_unregister_driver (&epic100_driver);
-	return -ENODEV;
+	return pci_module_init (&epic100_driver);
 }
 
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)