aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_def.h
diff options
context:
space:
mode:
authorAndrew Vasquez <andrew.vasquez@qlogic.com>2008-01-17 12:02:09 -0500
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-01-23 12:29:29 -0500
commit3776541d8a46347a4924353a192c6ce4a3d04e2e (patch)
treea679ae851b943a1f28079066009c41ba9f718cfb /drivers/scsi/qla2xxx/qla_def.h
parent43ef058010c79a967195539bbcdeee8c5b24219d (diff)
[SCSI] qla2xxx: Fix for 32-bit platforms with 64-bit resources.
The driver stores the contents of PCI resources into unsigned long's before ioremapping. This breaks on 32-bit platforms which support 64-bit MMIO resources. Correct code by removing the temporary variables used during MMIO PIO mapping and using resource_size_t where applicable. Also correct a small typo in a printk() where the wrong region number was displayed. Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_def.h')
-rw-r--r--drivers/scsi/qla2xxx/qla_def.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/qla2xxx/qla_def.h b/drivers/scsi/qla2xxx/qla_def.h
index a33d3d57a17e..d0b78af60f7b 100644
--- a/drivers/scsi/qla2xxx/qla_def.h
+++ b/drivers/scsi/qla2xxx/qla_def.h
@@ -2271,8 +2271,7 @@ typedef struct scsi_qla_host {
2271 2271
2272 int bars; 2272 int bars;
2273 device_reg_t __iomem *iobase; /* Base I/O address */ 2273 device_reg_t __iomem *iobase; /* Base I/O address */
2274 unsigned long pio_address; 2274 resource_size_t pio_address;
2275 unsigned long pio_length;
2276#define MIN_IOBASE_LEN 0x100 2275#define MIN_IOBASE_LEN 0x100
2277 2276
2278 /* ISP ring lock, rings, and indexes */ 2277 /* ISP ring lock, rings, and indexes */