Merge tag 'wberr-v4.14-1' of git://git.kernel.org/pub/scm/linux/kernel/git/jlayton...
[sfrench/cifs-2.6.git] / drivers / pci / pci-acpi.c
index e70c1c7ba1bf550422cd2b54bbf9801bb716a771..a8da543b3814b312a99af0ef1f3c3ef18e089478 100644 (file)
@@ -573,7 +573,7 @@ static int acpi_pci_propagate_wakeup(struct pci_bus *bus, bool enable)
 {
        while (bus->parent) {
                if (acpi_pm_device_can_wakeup(&bus->self->dev))
-                       return acpi_pm_set_device_wakeup(&bus->self->dev, enable);
+                       return acpi_pm_set_bridge_wakeup(&bus->self->dev, enable);
 
                bus = bus->parent;
        }
@@ -581,7 +581,7 @@ static int acpi_pci_propagate_wakeup(struct pci_bus *bus, bool enable)
        /* We have reached the root bus. */
        if (bus->bridge) {
                if (acpi_pm_device_can_wakeup(bus->bridge))
-                       return acpi_pm_set_device_wakeup(bus->bridge, enable);
+                       return acpi_pm_set_bridge_wakeup(bus->bridge, enable);
        }
        return 0;
 }