Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 179821
b: refs/heads/master
c: 4f9a91c
h: refs/heads/master
i:
  179819: 40cfa6c
v: v3
  • Loading branch information
Breno Leitao authored and David S. Miller committed Jan 25, 2010
1 parent 1b0c690 commit a92e9dd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d7c7544c3d5f59033d1bf3236bc7b289f5f26b75
refs/heads/master: 4f9a91c81273b66afe0b6a9be460b47581b28246
15 changes: 8 additions & 7 deletions trunk/drivers/net/qlge/qlge_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -4119,7 +4119,7 @@ static int __devinit ql_init_device(struct pci_dev *pdev,
err = pcie_set_readrq(pdev, 4096);
if (err) {
dev_err(&pdev->dev, "Set readrq failed.\n");
goto err_out;
goto err_out1;
}

err = pci_request_regions(pdev, DRV_NAME);
Expand All @@ -4140,7 +4140,7 @@ static int __devinit ql_init_device(struct pci_dev *pdev,

if (err) {
dev_err(&pdev->dev, "No usable DMA configuration.\n");
goto err_out;
goto err_out2;
}

/* Set PCIe reset type for EEH to fundamental. */
Expand All @@ -4152,7 +4152,7 @@ static int __devinit ql_init_device(struct pci_dev *pdev,
if (!qdev->reg_base) {
dev_err(&pdev->dev, "Register mapping failed.\n");
err = -ENOMEM;
goto err_out;
goto err_out2;
}

qdev->doorbell_area_size = pci_resource_len(pdev, 3);
Expand All @@ -4162,14 +4162,14 @@ static int __devinit ql_init_device(struct pci_dev *pdev,
if (!qdev->doorbell_area) {
dev_err(&pdev->dev, "Doorbell register mapping failed.\n");
err = -ENOMEM;
goto err_out;
goto err_out2;
}

err = ql_get_board_info(qdev);
if (err) {
dev_err(&pdev->dev, "Register access failed.\n");
err = -EIO;
goto err_out;
goto err_out2;
}
qdev->msg_enable = netif_msg_init(debug, default_msg);
spin_lock_init(&qdev->hw_lock);
Expand All @@ -4179,7 +4179,7 @@ static int __devinit ql_init_device(struct pci_dev *pdev,
err = qdev->nic_ops->get_flash(qdev);
if (err) {
dev_err(&pdev->dev, "Invalid FLASH.\n");
goto err_out;
goto err_out2;
}

memcpy(ndev->perm_addr, ndev->dev_addr, ndev->addr_len);
Expand Down Expand Up @@ -4212,8 +4212,9 @@ static int __devinit ql_init_device(struct pci_dev *pdev,
DRV_NAME, DRV_VERSION);
}
return 0;
err_out:
err_out2:
ql_release_all(pdev);
err_out1:
pci_disable_device(pdev);
return err;
}
Expand Down

0 comments on commit a92e9dd

Please sign in to comment.