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

Next file: linux/drivers/net/pcmcia/3c575_cb.c
Previous file: linux/drivers/net/hp100.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre5/linux/drivers/net/ne2k-pci.c linux/drivers/net/ne2k-pci.c
@@ -188,9 +188,10 @@
 		return -ENODEV;
 	}
 	
-	if (pci_enable_device (pdev)) {
+	i = pci_enable_device (pdev);
+	if (i) {
 		printk (KERN_ERR "ne2k-pci: cannot enable device\n");
-		return -EIO;
+		return i;
 	}
 	
 	if (request_region (ioaddr, NE_IO_EXTENT, "ne2k-pci") == NULL) {
@@ -292,6 +293,7 @@
 	/* Set up the rest of the parameters. */
 	dev->irq = irq;
 	dev->base_addr = ioaddr;
+	pdev->driver_data = dev;
 
 	/* Allocate dev->priv and fill in 8390 specific dev fields. */
 	if (ethdev_init(dev)) {

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