diff options
Diffstat (limited to 'drivers/pci/pci-acpi.c')
-rw-r--r-- | drivers/pci/pci-acpi.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/pci/pci-acpi.c b/drivers/pci/pci-acpi.c index 42736e213f25..e407c61559ca 100644 --- a/drivers/pci/pci-acpi.c +++ b/drivers/pci/pci-acpi.c | |||
@@ -345,7 +345,6 @@ static void pci_acpi_setup(struct device *dev) | |||
345 | acpi_pci_irq_add_prt(handle, pci_domain_nr(pci_dev->bus), bus); | 345 | acpi_pci_irq_add_prt(handle, pci_domain_nr(pci_dev->bus), bus); |
346 | } | 346 | } |
347 | 347 | ||
348 | acpi_power_resource_register_device(dev, handle); | ||
349 | if (acpi_bus_get_device(handle, &adev) || !adev->wakeup.flags.valid) | 348 | if (acpi_bus_get_device(handle, &adev) || !adev->wakeup.flags.valid) |
350 | return; | 349 | return; |
351 | 350 | ||
@@ -368,7 +367,6 @@ static void pci_acpi_cleanup(struct device *dev) | |||
368 | device_set_run_wake(dev, false); | 367 | device_set_run_wake(dev, false); |
369 | pci_acpi_remove_pm_notifier(adev); | 368 | pci_acpi_remove_pm_notifier(adev); |
370 | } | 369 | } |
371 | acpi_power_resource_unregister_device(dev, handle); | ||
372 | 370 | ||
373 | if (pci_dev->subordinate) | 371 | if (pci_dev->subordinate) |
374 | acpi_pci_irq_del_prt(pci_domain_nr(pci_dev->bus), | 372 | acpi_pci_irq_del_prt(pci_domain_nr(pci_dev->bus), |