diff options
Diffstat (limited to 'drivers/pci/pci-acpi.c')
-rw-r--r-- | drivers/pci/pci-acpi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pci/pci-acpi.c b/drivers/pci/pci-acpi.c index 33317df47699..cc617ddd33d0 100644 --- a/drivers/pci/pci-acpi.c +++ b/drivers/pci/pci-acpi.c | |||
@@ -116,7 +116,7 @@ static void acpi_pci_propagate_wakeup_enable(struct pci_bus *bus, bool enable) | |||
116 | int ret; | 116 | int ret; |
117 | 117 | ||
118 | ret = acpi_pm_device_sleep_wake(&bridge->dev, enable); | 118 | ret = acpi_pm_device_sleep_wake(&bridge->dev, enable); |
119 | if (!ret || bridge->is_pcie) | 119 | if (!ret || pci_is_pcie(bridge)) |
120 | return; | 120 | return; |
121 | bus = bus->parent; | 121 | bus = bus->parent; |
122 | } | 122 | } |
@@ -131,7 +131,7 @@ static int acpi_pci_sleep_wake(struct pci_dev *dev, bool enable) | |||
131 | if (acpi_pci_can_wakeup(dev)) | 131 | if (acpi_pci_can_wakeup(dev)) |
132 | return acpi_pm_device_sleep_wake(&dev->dev, enable); | 132 | return acpi_pm_device_sleep_wake(&dev->dev, enable); |
133 | 133 | ||
134 | if (!dev->is_pcie) | 134 | if (!pci_is_pcie(dev)) |
135 | acpi_pci_propagate_wakeup_enable(dev->bus, enable); | 135 | acpi_pci_propagate_wakeup_enable(dev->bus, enable); |
136 | 136 | ||
137 | return 0; | 137 | return 0; |