diff options
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; |