patch-2.3.49 linux/drivers/scsi/pci2000.c
Next file: linux/drivers/scsi/pci2220i.c
Previous file: linux/drivers/pcmcia/yenta.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Mon Feb 28 07:16:54 2000
- Orig file:
v2.3.48/linux/drivers/scsi/pci2000.c
- Orig date:
Sat Feb 26 22:31:48 2000
diff -u --recursive --new-file v2.3.48/linux/drivers/scsi/pci2000.c linux/drivers/scsi/pci2000.c
@@ -660,7 +660,7 @@
padapter = HOSTDATA(pshost);
#if LINUX_VERSION_CODE > LINUXVERSION(2,1,92)
- padapter->basePort = pdev->base_address[1] & 0xFFFE;
+ padapter->basePort = pci_resource_start (pdev, 1);
#else
pcibios_read_config_word (pci_bus, pci_device_fn, PCI_BASE_ADDRESS_1, &padapter->basePort);
padapter->basePort &= 0xFFFE;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)