patch-2.3.16 linux/drivers/net/defxx.c

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

diff -u --recursive --new-file v2.3.15/linux/drivers/net/defxx.c linux/drivers/net/defxx.c
@@ -549,11 +549,12 @@
 
 				/* Get I/O base address from PCI Configuration Space */
 
-				port = pdev->base_address[1] & PCI_BASE_ADDRESS_IO_MASK;
+				port = pdev->resource[1].start
 
 				/* Verify port address range is not already being used */
 
 				port_len = PFI_K_CSR_IO_LEN;
+
 				if (check_region(port, port_len) == 0)
 					{
 					/* Allocate a new device structure for this adapter */

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