Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 170635
b: refs/heads/master
c: 1d1023d
h: refs/heads/master
i:
  170633: 44c2e03
  170631: bed1fe2
v: v3
  • Loading branch information
Ron Mercer authored and David S. Miller committed Oct 12, 2009
1 parent fcd6c47 commit eb9638f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 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: 7fe13c5733790ef582769a54693fa6a5abf3c032
refs/heads/master: 1d1023d039d8295070b8dbb92c4d972237235304
16 changes: 1 addition & 15 deletions trunk/drivers/net/qlge/qlge_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3868,8 +3868,7 @@ static int __devinit ql_init_device(struct pci_dev *pdev,
struct net_device *ndev, int cards_found)
{
struct ql_adapter *qdev = netdev_priv(ndev);
int pos, err = 0;
u16 val16;
int err = 0;

memset((void *)qdev, 0, sizeof(*qdev));
err = pci_enable_device(pdev);
Expand All @@ -3881,19 +3880,6 @@ static int __devinit ql_init_device(struct pci_dev *pdev,
qdev->ndev = ndev;
qdev->pdev = pdev;
pci_set_drvdata(pdev, ndev);
pos = pci_find_capability(pdev, PCI_CAP_ID_EXP);
if (pos <= 0) {
dev_err(&pdev->dev, PFX "Cannot find PCI Express capability, "
"aborting.\n");
return pos;
} else {
pci_read_config_word(pdev, pos + PCI_EXP_DEVCTL, &val16);
val16 &= ~PCI_EXP_DEVCTL_NOSNOOP_EN;
val16 |= (PCI_EXP_DEVCTL_CERE |
PCI_EXP_DEVCTL_NFERE |
PCI_EXP_DEVCTL_FERE | PCI_EXP_DEVCTL_URRE);
pci_write_config_word(pdev, pos + PCI_EXP_DEVCTL, val16);
}

err = pci_request_regions(pdev, DRV_NAME);
if (err) {
Expand Down

0 comments on commit eb9638f

Please sign in to comment.