aboutsummaryrefslogtreecommitdiffstats
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, 4 insertions, 0 deletions
diff --git a/drivers/pci/pci-acpi.c b/drivers/pci/pci-acpi.c
index 67c63d1f1582..5c6a5d043007 100644
--- a/drivers/pci/pci-acpi.c
+++ b/drivers/pci/pci-acpi.c
@@ -220,6 +220,7 @@ acpi_status pci_osc_control_set(acpi_handle handle, u32 flags)
220} 220}
221EXPORT_SYMBOL(pci_osc_control_set); 221EXPORT_SYMBOL(pci_osc_control_set);
222 222
223#ifdef CONFIG_ACPI_SLEEP
223/* 224/*
224 * _SxD returns the D-state with the highest power 225 * _SxD returns the D-state with the highest power
225 * (lowest D-state number) supported in the S-state "x". 226 * (lowest D-state number) supported in the S-state "x".
@@ -267,6 +268,7 @@ static pci_power_t acpi_pci_choose_state(struct pci_dev *pdev,
267 } 268 }
268 return PCI_POWER_ERROR; 269 return PCI_POWER_ERROR;
269} 270}
271#endif
270 272
271static int acpi_pci_set_power_state(struct pci_dev *dev, pci_power_t state) 273static int acpi_pci_set_power_state(struct pci_dev *dev, pci_power_t state)
272{ 274{
@@ -340,7 +342,9 @@ static int __init acpi_pci_init(void)
340 ret = register_acpi_bus_type(&acpi_pci_bus); 342 ret = register_acpi_bus_type(&acpi_pci_bus);
341 if (ret) 343 if (ret)
342 return 0; 344 return 0;
345#ifdef CONFIG_ACPI_SLEEP
343 platform_pci_choose_state = acpi_pci_choose_state; 346 platform_pci_choose_state = acpi_pci_choose_state;
347#endif
344 platform_pci_set_power_state = acpi_pci_set_power_state; 348 platform_pci_set_power_state = acpi_pci_set_power_state;
345 return 0; 349 return 0;
346} 350}