Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 129818
b: refs/heads/master
c: 50246dd
h: refs/heads/master
v: v3
  • Loading branch information
Linus Torvalds committed Jan 16, 2009
1 parent 7ec6609 commit 4fb0c7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 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: 7cb36b6ccdca03bd87e8faca7fd920643dd1aec7
refs/heads/master: 50246dd41ccbcb47beb06d6c1d9355f6b7137a11
8 changes: 2 additions & 6 deletions trunk/drivers/pci/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -1260,15 +1260,14 @@ void pci_pm_init(struct pci_dev *dev)
/* find PCI PM capability in list */
pm = pci_find_capability(dev, PCI_CAP_ID_PM);
if (!pm)
goto Exit;

return;
/* Check device's ability to generate PME# */
pci_read_config_word(dev, pm + PCI_PM_PMC, &pmc);

if ((pmc & PCI_PM_CAP_VER_MASK) > 3) {
dev_err(&dev->dev, "unsupported PM cap regs version (%u)\n",
pmc & PCI_PM_CAP_VER_MASK);
goto Exit;
return;
}

dev->pm_cap = pm;
Expand Down Expand Up @@ -1307,9 +1306,6 @@ void pci_pm_init(struct pci_dev *dev)
} else {
dev->pme_support = 0;
}

Exit:
pci_update_current_state(dev, PCI_D0);
}

/**
Expand Down

0 comments on commit 4fb0c7a

Please sign in to comment.