aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla1280.c
diff options
context:
space:
mode:
authorArjan van de Ven <arjan@linux.intel.com>2008-09-28 19:18:02 -0400
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-12-29 12:24:11 -0500
commit25729a7fb88ef2912fcb869abe3a76b3be07fc06 (patch)
tree146e6282ac25d0e00987891a73c02f1682e39b7c /drivers/scsi/qla1280.c
parentdecf67e31e855963f4616912d9bc5b1c339d810a (diff)
[SCSI] advansys, arcmsr, ipr, nsp32, qla1280, stex: use pci_ioremap_bar()
Use the newly introduced pci_ioremap_bar() function in drivers/scsi. pci_ioremap_bar() just takes a pci device and a bar number, with the goal of making it really hard to get wrong, while also having a central place to stick sanity checks. Signed-off-by: Arjan van de Ven <arjan@linux.intel.com> Acked-by: Matthew Wilcox <willy@linux.intel.com> Cc: Brian King <brking@us.ibm.com> Cc: Ed Lin <ed.lin@promise.com> Cc: Nick Cheng <nick.cheng@areca.com.tw> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/qla1280.c')
-rw-r--r--drivers/scsi/qla1280.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/qla1280.c b/drivers/scsi/qla1280.c
index b6cd12b2e996..8cb9240596ab 100644
--- a/drivers/scsi/qla1280.c
+++ b/drivers/scsi/qla1280.c
@@ -4294,8 +4294,7 @@ qla1280_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
4294 error = -ENODEV; 4294 error = -ENODEV;
4295 4295
4296#if MEMORY_MAPPED_IO 4296#if MEMORY_MAPPED_IO
4297 ha->mmpbase = ioremap(pci_resource_start(ha->pdev, 1), 4297 ha->mmpbase = pci_ioremap_bar(ha->pdev, 1);
4298 pci_resource_len(ha->pdev, 1));
4299 if (!ha->mmpbase) { 4298 if (!ha->mmpbase) {
4300 printk(KERN_INFO "qla1280: Unable to map I/O memory\n"); 4299 printk(KERN_INFO "qla1280: Unable to map I/O memory\n");
4301 goto error_free_response_ring; 4300 goto error_free_response_ring;