aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/qla3xxx.c
diff options
context:
space:
mode:
authorArjan van de Ven <arjan@infradead.org>2008-10-21 00:42:39 -0400
committerJeff Garzik <jgarzik@redhat.com>2008-10-31 00:53:48 -0400
commit275f165fa970174f8a98205529750e8abb6c0a33 (patch)
treea9548561c6fd50de8a0d706704ba6c6f22bc7b19 /drivers/net/qla3xxx.c
parent842e08bd6891bd78b4c3d2e0c4a94bebb32ab3ad (diff)
pci: use pci_ioremap_bar() in drivers/net
Use the newly introduced pci_ioremap_bar() function in drivers/net. 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> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/qla3xxx.c')
-rw-r--r--drivers/net/qla3xxx.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/qla3xxx.c b/drivers/net/qla3xxx.c
index 9589ca75a139..acf8dc55e2a0 100644
--- a/drivers/net/qla3xxx.c
+++ b/drivers/net/qla3xxx.c
@@ -3977,9 +3977,7 @@ static int __devinit ql3xxx_probe(struct pci_dev *pdev,
3977 if (qdev->device_id == QL3032_DEVICE_ID) 3977 if (qdev->device_id == QL3032_DEVICE_ID)
3978 ndev->features |= NETIF_F_IP_CSUM | NETIF_F_SG; 3978 ndev->features |= NETIF_F_IP_CSUM | NETIF_F_SG;
3979 3979
3980 qdev->mem_map_registers = 3980 qdev->mem_map_registers = pci_ioremap_bar(pdev, 1);
3981 ioremap_nocache(pci_resource_start(pdev, 1),
3982 pci_resource_len(qdev->pdev, 1));
3983 if (!qdev->mem_map_registers) { 3981 if (!qdev->mem_map_registers) {
3984 printk(KERN_ERR PFX "%s: cannot map device registers\n", 3982 printk(KERN_ERR PFX "%s: cannot map device registers\n",
3985 pci_name(pdev)); 3983 pci_name(pdev));