diff options
-rw-r--r-- | drivers/pci/pci.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index c56a4a0355a8..7b59fd7c9575 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c | |||
@@ -1284,15 +1284,14 @@ pci_power_t pci_target_state(struct pci_dev *dev) | |||
1284 | default: | 1284 | default: |
1285 | target_state = state; | 1285 | target_state = state; |
1286 | } | 1286 | } |
1287 | } else if (!dev->pm_cap) { | ||
1288 | target_state = PCI_D0; | ||
1287 | } else if (device_may_wakeup(&dev->dev)) { | 1289 | } else if (device_may_wakeup(&dev->dev)) { |
1288 | /* | 1290 | /* |
1289 | * Find the deepest state from which the device can generate | 1291 | * Find the deepest state from which the device can generate |
1290 | * wake-up events, make it the target state and enable device | 1292 | * wake-up events, make it the target state and enable device |
1291 | * to generate PME#. | 1293 | * to generate PME#. |
1292 | */ | 1294 | */ |
1293 | if (!dev->pm_cap) | ||
1294 | return PCI_POWER_ERROR; | ||
1295 | |||
1296 | if (dev->pme_support) { | 1295 | if (dev->pme_support) { |
1297 | while (target_state | 1296 | while (target_state |
1298 | && !(dev->pme_support & (1 << target_state))) | 1297 | && !(dev->pme_support & (1 << target_state))) |