aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci/pci.c')
-rw-r--r--drivers/pci/pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index e632a58ba5d0..ace518116cc5 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -1152,7 +1152,6 @@ int pci_prepare_to_sleep(struct pci_dev *dev)
1152 break; 1152 break;
1153 default: 1153 default:
1154 target_state = state; 1154 target_state = state;
1155 pci_enable_wake(dev, target_state, true);
1156 } 1155 }
1157 } else if (device_may_wakeup(&dev->dev)) { 1156 } else if (device_may_wakeup(&dev->dev)) {
1158 /* 1157 /*
@@ -1167,10 +1166,11 @@ int pci_prepare_to_sleep(struct pci_dev *dev)
1167 while (target_state 1166 while (target_state
1168 && !(dev->pme_support & (1 << target_state))) 1167 && !(dev->pme_support & (1 << target_state)))
1169 target_state--; 1168 target_state--;
1170 pci_pme_active(dev, true);
1171 } 1169 }
1172 } 1170 }
1173 1171
1172 pci_enable_wake(dev, target_state, true);
1173
1174 error = pci_set_power_state(dev, target_state); 1174 error = pci_set_power_state(dev, target_state);
1175 1175
1176 if (error) 1176 if (error)