patch-2.3.13 linux/drivers/scsi/eata_dma.c

Next file: linux/drivers/scsi/eata_pio.c
Previous file: linux/drivers/scsi/eata.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.12/linux/drivers/scsi/eata_dma.c linux/drivers/scsi/eata_dma.c
@@ -1414,12 +1414,12 @@
 	    DBG(DBG_PROBE && DBG_PCI, 
 		printk("eata_dma: find_PCI, HBA at %s\n", dev->name));
 	    pci_set_master(dev);
-	    base = dev->base_address[0];
+	    base = dev->resource[0].flags;
 	    if (!(base & PCI_BASE_ADDRESS_SPACE_IO)) {
 		printk("eata_dma: invalid base address of device %s\n", dev->name);
 		continue;
 	    }
-	    base &= PCI_BASE_ADDRESS_IO_MASK;
+	    base = dev->resource[0].start;
             /* EISA tag there ? */
 	    pal1 = inb(base);
 	    pal2 = inb(base + 1);

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