summaryrefslogtreecommitdiffstats
path: root/drivers/pci/pci-acpi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci/pci-acpi.c')
-rw-r--r--drivers/pci/pci-acpi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pci/pci-acpi.c b/drivers/pci/pci-acpi.c
index e70c1c7ba1bf..a8da543b3814 100644
--- a/drivers/pci/pci-acpi.c
+++ b/drivers/pci/pci-acpi.c
@@ -573,7 +573,7 @@ static int acpi_pci_propagate_wakeup(struct pci_bus *bus, bool enable)
573{ 573{
574 while (bus->parent) { 574 while (bus->parent) {
575 if (acpi_pm_device_can_wakeup(&bus->self->dev)) 575 if (acpi_pm_device_can_wakeup(&bus->self->dev))
576 return acpi_pm_set_device_wakeup(&bus->self->dev, enable); 576 return acpi_pm_set_bridge_wakeup(&bus->self->dev, enable);
577 577
578 bus = bus->parent; 578 bus = bus->parent;
579 } 579 }
@@ -581,7 +581,7 @@ static int acpi_pci_propagate_wakeup(struct pci_bus *bus, bool enable)
581 /* We have reached the root bus. */ 581 /* We have reached the root bus. */
582 if (bus->bridge) { 582 if (bus->bridge) {
583 if (acpi_pm_device_can_wakeup(bus->bridge)) 583 if (acpi_pm_device_can_wakeup(bus->bridge))
584 return acpi_pm_set_device_wakeup(bus->bridge, enable); 584 return acpi_pm_set_bridge_wakeup(bus->bridge, enable);
585 } 585 }
586 return 0; 586 return 0;
587} 587}