diff options
author | Arjan van de Ven <arjan@infradead.org> | 2008-10-21 00:42:39 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-10-31 00:53:48 -0400 |
commit | 275f165fa970174f8a98205529750e8abb6c0a33 (patch) | |
tree | a9548561c6fd50de8a0d706704ba6c6f22bc7b19 /drivers/net/ixgb | |
parent | 842e08bd6891bd78b4c3d2e0c4a94bebb32ab3ad (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/ixgb')
-rw-r--r-- | drivers/net/ixgb/ixgb_main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ixgb/ixgb_main.c b/drivers/net/ixgb/ixgb_main.c index be3c7dc96f63..21995dff1fa4 100644 --- a/drivers/net/ixgb/ixgb_main.c +++ b/drivers/net/ixgb/ixgb_main.c | |||
@@ -381,8 +381,7 @@ ixgb_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
381 | adapter->hw.back = adapter; | 381 | adapter->hw.back = adapter; |
382 | adapter->msg_enable = netif_msg_init(debug, DEFAULT_DEBUG_LEVEL_SHIFT); | 382 | adapter->msg_enable = netif_msg_init(debug, DEFAULT_DEBUG_LEVEL_SHIFT); |
383 | 383 | ||
384 | adapter->hw.hw_addr = ioremap(pci_resource_start(pdev, BAR_0), | 384 | adapter->hw.hw_addr = pci_ioremap_bar(pdev, BAR_0); |
385 | pci_resource_len(pdev, BAR_0)); | ||
386 | if (!adapter->hw.hw_addr) { | 385 | if (!adapter->hw.hw_addr) { |
387 | err = -EIO; | 386 | err = -EIO; |
388 | goto err_ioremap; | 387 | goto err_ioremap; |