diff options
author | Ben Collins <bcollins@ubuntu.com> | 2012-06-11 14:05:02 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-07-20 03:58:43 -0400 |
commit | ff08784b41e1ab5da6776411b7a8381fe942f2cc (patch) | |
tree | 0f26c0cbd909089ccca01ba3516040eb771ad552 /drivers/scsi/aacraid/linit.c | |
parent | 7e8a74b177f17d100916b6ad415450f7c9508691 (diff) |
[SCSI] aacraid: Use resource_size_t for IO mem pointers and offsets
This also stops using the "legacy crap" in Scsi_Host (shost->base is an
unsigned long).
This affected 32-bit systems that have 64-bit resource sizes, causing the
IO address to be truncated.
Signed-off-by: Ben Collins <bcollins@ubuntu.com>
Acked-by: Achim Leubner <Achim_Leubner@pmc-sierra.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/aacraid/linit.c')
-rw-r--r-- | drivers/scsi/aacraid/linit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/aacraid/linit.c b/drivers/scsi/aacraid/linit.c index 0d279c445a30..fdfc4be9c7c6 100644 --- a/drivers/scsi/aacraid/linit.c +++ b/drivers/scsi/aacraid/linit.c | |||
@@ -1145,11 +1145,11 @@ static int __devinit aac_probe_one(struct pci_dev *pdev, | |||
1145 | goto out_disable_pdev; | 1145 | goto out_disable_pdev; |
1146 | 1146 | ||
1147 | shost->irq = pdev->irq; | 1147 | shost->irq = pdev->irq; |
1148 | shost->base = pci_resource_start(pdev, 0); | ||
1149 | shost->unique_id = unique_id; | 1148 | shost->unique_id = unique_id; |
1150 | shost->max_cmd_len = 16; | 1149 | shost->max_cmd_len = 16; |
1151 | 1150 | ||
1152 | aac = (struct aac_dev *)shost->hostdata; | 1151 | aac = (struct aac_dev *)shost->hostdata; |
1152 | aac->base_start = pci_resource_start(pdev, 0); | ||
1153 | aac->scsi_host_ptr = shost; | 1153 | aac->scsi_host_ptr = shost; |
1154 | aac->pdev = pdev; | 1154 | aac->pdev = pdev; |
1155 | aac->name = aac_driver_template.name; | 1155 | aac->name = aac_driver_template.name; |