diff options
Diffstat (limited to 'drivers/net/bnx2x_main.c')
-rw-r--r-- | drivers/net/bnx2x_main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/bnx2x_main.c b/drivers/net/bnx2x_main.c index 9cfc941aab0a..42965ad54f08 100644 --- a/drivers/net/bnx2x_main.c +++ b/drivers/net/bnx2x_main.c | |||
@@ -10087,8 +10087,7 @@ static int __devinit bnx2x_init_dev(struct pci_dev *pdev, | |||
10087 | 10087 | ||
10088 | dev->irq = pdev->irq; | 10088 | dev->irq = pdev->irq; |
10089 | 10089 | ||
10090 | bp->regview = ioremap_nocache(dev->base_addr, | 10090 | bp->regview = pci_ioremap_bar(pdev, 0); |
10091 | pci_resource_len(pdev, 0)); | ||
10092 | if (!bp->regview) { | 10091 | if (!bp->regview) { |
10093 | printk(KERN_ERR PFX "Cannot map register space, aborting\n"); | 10092 | printk(KERN_ERR PFX "Cannot map register space, aborting\n"); |
10094 | rc = -ENOMEM; | 10093 | rc = -ENOMEM; |