Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 190218
b: refs/heads/master
c: cc2893b
h: refs/heads/master
v: v3
  • Loading branch information
Matthew Garrett authored and Jesse Barnes committed Apr 22, 2010
1 parent f279f9f commit 65d478c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 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: 66528fdd45b082bf7c74687d72ae08afa4a446f8
refs/heads/master: cc2893b6af5265baa1d68b17b136cffca9e40cfa
6 changes: 1 addition & 5 deletions trunk/drivers/pci/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ static void __pci_start_power_transition(struct pci_dev *dev, pci_power_t state)
*/
int __pci_complete_power_transition(struct pci_dev *dev, pci_power_t state)
{
return state > PCI_D0 ?
return state >= PCI_D0 ?
pci_platform_power_transition(dev, state) : -EINVAL;
}
EXPORT_SYMBOL_GPL(__pci_complete_power_transition);
Expand Down Expand Up @@ -716,10 +716,6 @@ int pci_set_power_state(struct pci_dev *dev, pci_power_t state)
*/
return 0;

/* Check if we're already there */
if (dev->current_state == state)
return 0;

__pci_start_power_transition(dev, state);

/* This device is quirked not to be put into D3, so
Expand Down

0 comments on commit 65d478c

Please sign in to comment.