diff options
Diffstat (limited to 'drivers/pci/pci.c')
-rw-r--r-- | drivers/pci/pci.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index be792519adcd..73e45f7688bf 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c | |||
@@ -624,7 +624,7 @@ static void __pci_start_power_transition(struct pci_dev *dev, pci_power_t state) | |||
624 | */ | 624 | */ |
625 | int __pci_complete_power_transition(struct pci_dev *dev, pci_power_t state) | 625 | int __pci_complete_power_transition(struct pci_dev *dev, pci_power_t state) |
626 | { | 626 | { |
627 | return state > PCI_D0 ? | 627 | return state >= PCI_D0 ? |
628 | pci_platform_power_transition(dev, state) : -EINVAL; | 628 | pci_platform_power_transition(dev, state) : -EINVAL; |
629 | } | 629 | } |
630 | EXPORT_SYMBOL_GPL(__pci_complete_power_transition); | 630 | EXPORT_SYMBOL_GPL(__pci_complete_power_transition); |
@@ -661,10 +661,6 @@ int pci_set_power_state(struct pci_dev *dev, pci_power_t state) | |||
661 | */ | 661 | */ |
662 | return 0; | 662 | return 0; |
663 | 663 | ||
664 | /* Check if we're already there */ | ||
665 | if (dev->current_state == state) | ||
666 | return 0; | ||
667 | |||
668 | __pci_start_power_transition(dev, state); | 664 | __pci_start_power_transition(dev, state); |
669 | 665 | ||
670 | /* This device is quirked not to be put into D3, so | 666 | /* This device is quirked not to be put into D3, so |