patch-2.4.0-test2 linux/drivers/scsi/dmx3191d.c
Next file: linux/drivers/scsi/eata.c
Previous file: linux/drivers/scsi/atp870u.c
Back to the patch index
Back to the overall index
- Lines: 16
- Date:
Mon Jun 19 13:42:40 2000
- Orig file:
v2.4.0-test1/linux/drivers/scsi/dmx3191d.c
- Orig date:
Tue Apr 11 15:09:18 2000
diff -u --recursive --new-file v2.4.0-test1/linux/drivers/scsi/dmx3191d.c linux/drivers/scsi/dmx3191d.c
@@ -68,11 +68,10 @@
while ((pdev = pci_find_device(PCI_VENDOR_ID_DOMEX,
PCI_DEVICE_ID_DOMEX_DMX3191D, pdev))) {
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,13)
- unsigned long port = pdev->base_address[0] & PCI_IOADDRESS_MASK;
-#else
- unsigned long port = pdev->resource[0].start;
-#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(2,3,13) */
+ unsigned long port = pci_resource_start (pdev, 0);
+
+ if (pci_enable_device(pdev))
+ continue;
if (check_region(port, DMX3191D_REGION)) {
dmx3191d_printk("region 0x%lx-0x%lx already reserved\n",
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)