patch-2.3.99-pre7 linux/drivers/net/ne2k-pci.c

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

diff -u --recursive --new-file v2.3.99-pre6/linux/drivers/net/ne2k-pci.c linux/drivers/net/ne2k-pci.c
@@ -189,10 +189,8 @@
 	}
 	
 	i = pci_enable_device (pdev);
-	if (i) {
-		printk (KERN_ERR "ne2k-pci: cannot enable device\n");
+	if (i)
 		return i;
-	}
 	
 	if (request_region (ioaddr, NE_IO_EXTENT, "ne2k-pci") == NULL) {
 		printk (KERN_ERR "ne2k-pci: I/O resource 0x%x @ 0x%lx busy\n",
@@ -567,7 +565,6 @@
 {
 	int rc;
 	
-	MOD_INC_USE_COUNT;
 	lock_8390_module();
 	
 	rc = pci_module_init (&ne2k_driver);
@@ -576,8 +573,6 @@
 	if (rc <= 0)
 		unlock_8390_module();
 
-	MOD_DEC_USE_COUNT;
-	
 	return rc;
 }
 

FUNET's LINUX-ADM group, [email protected]
TCL-scripts by Sam Shen (who was at: [email protected])