patch-2.0.35 linux/drivers/net/ne2k-pci.c

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

diff -u --recursive --new-file v2.0.34/linux/drivers/net/ne2k-pci.c linux/drivers/net/ne2k-pci.c
@@ -45,7 +45,7 @@
 #include "8390.h"
 
 /* Set statically or when loading the driver module. */
-static debug = 1;
+static int debug = 1;
 
 /* Some defines that people can play with if so inclined. */
 
@@ -189,14 +189,6 @@
 	if ( ! pcibios_present())
 		return -ENODEV;
 
-#ifndef MODULE
-	{
-		static unsigned version_printed = 0;
-		if (version_printed++ == 0)
-			printk(KERN_INFO "%s", version);
-	}
-#endif
-
 	for (;pci_index < 0xff; pci_index++) {
 		unsigned char pci_bus, pci_device_fn;
 		u8 pci_irq_line;
@@ -219,6 +211,14 @@
 				break;
 		if (pci_clone_list[i].vendor == 0)
 			continue;
+
+#ifndef MODULE
+		{
+			static unsigned version_printed = 0;
+			if (version_printed++ == 0)
+				printk(KERN_INFO "%s", version);
+		}
+#endif
 
 		pcibios_read_config_dword(pci_bus, pci_device_fn,
 								  PCI_BASE_ADDRESS_0, &pci_ioaddr);

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