patch-2.4.0-test2 linux/drivers/scsi/53c7,8xx.c
Next file: linux/drivers/scsi/AM53C974.c
Previous file: linux/drivers/scsi/3w-xxxx.c
Back to the patch index
Back to the overall index
- Lines: 13
- Date:
Mon Jun 19 17:59:41 2000
- Orig file:
v2.4.0-test1/linux/drivers/scsi/53c7,8xx.c
- Orig date:
Wed Apr 26 16:34:08 2000
diff -u --recursive --new-file v2.4.0-test1/linux/drivers/scsi/53c7,8xx.c linux/drivers/scsi/53c7,8xx.c
@@ -1412,8 +1412,10 @@
" perhaps you specified an incorrect PCI bus, device, or function.\n", error);
return -1;
}
- io_port = pdev->resource[0].start;
- base = pdev->resource[1].start;
+ if (pci_enable_device(pdev))
+ return -1;
+ io_port = pci_resource_start(pdev, 0);
+ base = pci_resource_start(pdev, 1);
irq = pdev->irq;
/* If any one ever clones the NCR chips, this will have to change */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)