summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/pci2220i.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-06-19 22:45:37 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-06-19 22:45:37 +0000
commit6d403070f28cd44860fdb3a53be5da0275c65cf4 (patch)
tree0d0e7fe7b5fb7568d19e11d7d862b77a866ce081 /drivers/scsi/pci2220i.c
parentecf1bf5f6c2e668d03b0a9fb026db7aa41e292e1 (diff)
Merge with 2.4.0-test1-ac21 + pile of MIPS cleanups to make merging
possible. Chainsawed RM200 kernel to compile again. Jazz machine status unknown.
Diffstat (limited to 'drivers/scsi/pci2220i.c')
-rw-r--r--drivers/scsi/pci2220i.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/scsi/pci2220i.c b/drivers/scsi/pci2220i.c
index ca5c57981..8a59351aa 100644
--- a/drivers/scsi/pci2220i.c
+++ b/drivers/scsi/pci2220i.c
@@ -2386,8 +2386,8 @@ static USHORT GetRegs (struct Scsi_Host *pshost, BOOL bigd, struct pci_dev *pcid
memset (&DaleSetup, 0, sizeof (DaleSetup));
memset (DiskMirror, 0, sizeof (DiskMirror));
- zr = pcidev->resource[1].start & PCI_BASE_ADDRESS_IO_MASK;
- zl = pcidev->resource[2].start & PCI_BASE_ADDRESS_IO_MASK;
+ zr = pci_resource_start (pcidev, 1);
+ zl = pci_resource_start (pcidev, 2);
padapter->basePort = zr;
padapter->regRemap = zr + RTR_LOCAL_REMAP; // 32 bit local space remap
@@ -2542,6 +2542,8 @@ int Pci2220i_Detect (Scsi_Host_Template *tpnt)
while ( (pcidev = pci_find_device (VENDOR_PSI, DEVICE_DALE_1, pcidev)) != NULL )
{
+ if (pci_enable_device(pcidev))
+ continue;
pshost = scsi_register (tpnt, sizeof(ADAPTER2220I));
padapter = HOSTDATA(pshost);