aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/3c59x.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/3c59x.c b/drivers/net/3c59x.c
index 069a03f717d3..9b137e14dbb0 100644
--- a/drivers/net/3c59x.c
+++ b/drivers/net/3c59x.c
@@ -1020,6 +1020,11 @@ static int __devinit vortex_init_one(struct pci_dev *pdev,
1020 ioaddr = pci_iomap(pdev, pci_bar, 0); 1020 ioaddr = pci_iomap(pdev, pci_bar, 0);
1021 if (!ioaddr) /* If mapping fails, fall-back to BAR 0... */ 1021 if (!ioaddr) /* If mapping fails, fall-back to BAR 0... */
1022 ioaddr = pci_iomap(pdev, 0, 0); 1022 ioaddr = pci_iomap(pdev, 0, 0);
1023 if (!ioaddr) {
1024 pci_disable_device(pdev);
1025 rc = -ENOMEM;
1026 goto out;
1027 }
1023 1028
1024 rc = vortex_probe1(&pdev->dev, ioaddr, pdev->irq, 1029 rc = vortex_probe1(&pdev->dev, ioaddr, pdev->irq,
1025 ent->driver_data, unit); 1030 ent->driver_data, unit);