diff options
Diffstat (limited to 'drivers/scsi/arcmsr/arcmsr_hba.c')
-rw-r--r-- | drivers/scsi/arcmsr/arcmsr_hba.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/scsi/arcmsr/arcmsr_hba.c b/drivers/scsi/arcmsr/arcmsr_hba.c index f91f79c8007d..106c04d2d793 100644 --- a/drivers/scsi/arcmsr/arcmsr_hba.c +++ b/drivers/scsi/arcmsr/arcmsr_hba.c | |||
@@ -235,7 +235,7 @@ static int arcmsr_alloc_ccb_pool(struct AdapterControlBlock *acb) | |||
235 | uint32_t intmask_org; | 235 | uint32_t intmask_org; |
236 | int i, j; | 236 | int i, j; |
237 | 237 | ||
238 | acb->pmuA = ioremap(pci_resource_start(pdev, 0), pci_resource_len(pdev, 0)); | 238 | acb->pmuA = pci_ioremap_bar(pdev, 0); |
239 | if (!acb->pmuA) { | 239 | if (!acb->pmuA) { |
240 | printk(KERN_NOTICE "arcmsr%d: memory mapping region fail \n", | 240 | printk(KERN_NOTICE "arcmsr%d: memory mapping region fail \n", |
241 | acb->host->host_no); | 241 | acb->host->host_no); |
@@ -329,13 +329,11 @@ static int arcmsr_alloc_ccb_pool(struct AdapterControlBlock *acb) | |||
329 | reg = (struct MessageUnit_B *)(dma_coherent + | 329 | reg = (struct MessageUnit_B *)(dma_coherent + |
330 | ARCMSR_MAX_FREECCB_NUM * sizeof(struct CommandControlBlock)); | 330 | ARCMSR_MAX_FREECCB_NUM * sizeof(struct CommandControlBlock)); |
331 | acb->pmuB = reg; | 331 | acb->pmuB = reg; |
332 | mem_base0 = ioremap(pci_resource_start(pdev, 0), | 332 | mem_base0 = pci_ioremap_bar(pdev, 0); |
333 | pci_resource_len(pdev, 0)); | ||
334 | if (!mem_base0) | 333 | if (!mem_base0) |
335 | goto out; | 334 | goto out; |
336 | 335 | ||
337 | mem_base1 = ioremap(pci_resource_start(pdev, 2), | 336 | mem_base1 = pci_ioremap_bar(pdev, 2); |
338 | pci_resource_len(pdev, 2)); | ||
339 | if (!mem_base1) { | 337 | if (!mem_base1) { |
340 | iounmap(mem_base0); | 338 | iounmap(mem_base0); |
341 | goto out; | 339 | goto out; |