diff options
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index d4d71fae6233..1fb7cff4cdae 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c | |||
@@ -1091,7 +1091,7 @@ int pci_enable_wake(struct pci_dev *dev, pci_power_t state, int enable) | |||
1091 | int error = 0; | 1091 | int error = 0; |
1092 | bool pme_done = false; | 1092 | bool pme_done = false; |
1093 | 1093 | ||
1094 | if (!device_may_wakeup(&dev->dev)) | 1094 | if (enable && !device_may_wakeup(&dev->dev)) |
1095 | return -EINVAL; | 1095 | return -EINVAL; |
1096 | 1096 | ||
1097 | /* | 1097 | /* |