diff options
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/pci-acpi.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/pci/pci-acpi.c b/drivers/pci/pci-acpi.c index 1ab98bbe58dd..24e19c594e57 100644 --- a/drivers/pci/pci-acpi.c +++ b/drivers/pci/pci-acpi.c | |||
@@ -296,14 +296,12 @@ static int acpi_dev_run_wake(struct device *phys_dev, bool enable) | |||
296 | if (!dev->wakeup.run_wake_count++) { | 296 | if (!dev->wakeup.run_wake_count++) { |
297 | acpi_enable_wakeup_device_power(dev, ACPI_STATE_S0); | 297 | acpi_enable_wakeup_device_power(dev, ACPI_STATE_S0); |
298 | acpi_enable_gpe(dev->wakeup.gpe_device, | 298 | acpi_enable_gpe(dev->wakeup.gpe_device, |
299 | dev->wakeup.gpe_number, | 299 | dev->wakeup.gpe_number); |
300 | ACPI_GPE_TYPE_RUNTIME); | ||
301 | } | 300 | } |
302 | } else if (dev->wakeup.run_wake_count > 0) { | 301 | } else if (dev->wakeup.run_wake_count > 0) { |
303 | if (!--dev->wakeup.run_wake_count) { | 302 | if (!--dev->wakeup.run_wake_count) { |
304 | acpi_disable_gpe(dev->wakeup.gpe_device, | 303 | acpi_disable_gpe(dev->wakeup.gpe_device, |
305 | dev->wakeup.gpe_number, | 304 | dev->wakeup.gpe_number); |
306 | ACPI_GPE_TYPE_RUNTIME); | ||
307 | acpi_disable_wakeup_device_power(dev); | 305 | acpi_disable_wakeup_device_power(dev); |
308 | } | 306 | } |
309 | } else { | 307 | } else { |