patch-2.2.16 linux/drivers/net/via-rhine.c

Next file: linux/drivers/net/wanxl.c
Previous file: linux/drivers/net/syncppp.h
Back to the patch index
Back to the overall index

diff -urN v2.2.15/linux/drivers/net/via-rhine.c linux/drivers/net/via-rhine.c
@@ -508,7 +508,9 @@
 #ifndef MODULE
 int via_rhine_probe(struct device *dev)
 {
-	printk(KERN_INFO "%s" KERN_INFO "%s", versionA, versionB);
+	static int did_version = 0;
+	if (!did_version++)
+		printk(KERN_INFO "%s" KERN_INFO "%s", versionA, versionB);
 	return pci_etherdev_probe(dev, pci_tbl);
 }
 #endif

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