aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi')
-rw-r--r--drivers/acpi/Kconfig1
-rw-r--r--drivers/acpi/bus.c23
-rw-r--r--drivers/acpi/sleep.c4
3 files changed, 8 insertions, 20 deletions
diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig
index 2aa042a5da6d..3a17ca5fff6f 100644
--- a/drivers/acpi/Kconfig
+++ b/drivers/acpi/Kconfig
@@ -7,7 +7,6 @@ menuconfig ACPI
7 depends on !IA64_HP_SIM 7 depends on !IA64_HP_SIM
8 depends on IA64 || X86 8 depends on IA64 || X86
9 depends on PCI 9 depends on PCI
10 depends on PM
11 select PNP 10 select PNP
12 default y 11 default y
13 help 12 help
diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c
index 7ced61f39492..9749980ca6ca 100644
--- a/drivers/acpi/bus.c
+++ b/drivers/acpi/bus.c
@@ -40,6 +40,7 @@
40#include <acpi/acpi_bus.h> 40#include <acpi/acpi_bus.h>
41#include <acpi/acpi_drivers.h> 41#include <acpi/acpi_drivers.h>
42#include <linux/dmi.h> 42#include <linux/dmi.h>
43#include <linux/suspend.h>
43 44
44#include "internal.h" 45#include "internal.h"
45 46
@@ -1006,8 +1007,7 @@ struct kobject *acpi_kobj;
1006 1007
1007static int __init acpi_init(void) 1008static int __init acpi_init(void)
1008{ 1009{
1009 int result = 0; 1010 int result;
1010
1011 1011
1012 if (acpi_disabled) { 1012 if (acpi_disabled) {
1013 printk(KERN_INFO PREFIX "Interpreter disabled.\n"); 1013 printk(KERN_INFO PREFIX "Interpreter disabled.\n");
@@ -1022,29 +1022,18 @@ static int __init acpi_init(void)
1022 1022
1023 init_acpi_device_notify(); 1023 init_acpi_device_notify();
1024 result = acpi_bus_init(); 1024 result = acpi_bus_init();
1025 1025 if (result) {
1026 if (!result) {
1027 pci_mmcfg_late_init();
1028 if (!(pm_flags & PM_APM))
1029 pm_flags |= PM_ACPI;
1030 else {
1031 printk(KERN_INFO PREFIX
1032 "APM is already active, exiting\n");
1033 disable_acpi();
1034 result = -ENODEV;
1035 }
1036 } else
1037 disable_acpi(); 1026 disable_acpi();
1038
1039 if (acpi_disabled)
1040 return result; 1027 return result;
1028 }
1041 1029
1030 pci_mmcfg_late_init();
1042 acpi_scan_init(); 1031 acpi_scan_init();
1043 acpi_ec_init(); 1032 acpi_ec_init();
1044 acpi_debugfs_init(); 1033 acpi_debugfs_init();
1045 acpi_sleep_proc_init(); 1034 acpi_sleep_proc_init();
1046 acpi_wakeup_device_init(); 1035 acpi_wakeup_device_init();
1047 return result; 1036 return 0;
1048} 1037}
1049 1038
1050subsys_initcall(acpi_init); 1039subsys_initcall(acpi_init);
diff --git a/drivers/acpi/sleep.c b/drivers/acpi/sleep.c
index d6a8cd14de2e..8ea092fad3f6 100644
--- a/drivers/acpi/sleep.c
+++ b/drivers/acpi/sleep.c
@@ -585,7 +585,7 @@ int acpi_suspend(u32 acpi_state)
585 return -EINVAL; 585 return -EINVAL;
586} 586}
587 587
588#ifdef CONFIG_PM_OPS 588#ifdef CONFIG_PM
589/** 589/**
590 * acpi_pm_device_sleep_state - return preferred power state of ACPI device 590 * acpi_pm_device_sleep_state - return preferred power state of ACPI device
591 * in the system sleep state given by %acpi_target_sleep_state 591 * in the system sleep state given by %acpi_target_sleep_state
@@ -671,7 +671,7 @@ int acpi_pm_device_sleep_state(struct device *dev, int *d_min_p)
671 *d_min_p = d_min; 671 *d_min_p = d_min;
672 return d_max; 672 return d_max;
673} 673}
674#endif /* CONFIG_PM_OPS */ 674#endif /* CONFIG_PM */
675 675
676#ifdef CONFIG_PM_SLEEP 676#ifdef CONFIG_PM_SLEEP
677/** 677/**