patch-2.4.0-test2 linux/drivers/net/defxx.c

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

diff -u --recursive --new-file v2.4.0-test1/linux/drivers/net/defxx.c linux/drivers/net/defxx.c
@@ -500,6 +500,9 @@
 				printk(version);				/* we only display this string ONCE */
 			}
 
+			if (pci_enable_device(pdev))
+				continue;
+
 			/* Verify that I/O enable bit is set (PCI slot is enabled) */
 
 			pci_read_config_word(pdev, PCI_COMMAND, &command);
@@ -515,7 +518,7 @@
 
 				/* Get I/O base address from PCI Configuration Space */
 
-				port = pdev->resource[1].start;
+				port = pci_resource_start (pdev, 1);
 
 				/* Verify port address range is not already being used */
 

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