aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2004-08-09 04:43:20 -0400
committerLen Brown <lenb@dhcppc3.>2004-08-09 04:43:20 -0400
commitc8d992fbce4232ca68e4e3344a80b73a0967318b (patch)
tree55bd5759285a144b0369ec676dbbe81f6d6e1f47 /drivers
parentc9b5713062dfc43c433af49cbd3a73f0ccd652c3 (diff)
downloadhistory-c8d992fbce4232ca68e4e3344a80b73a0967318b.tar.gz
[ACPI] init wakeup devcies only if ACPI enabled (David Shaohua Li)
Diffstat (limited to 'drivers')
-rw-r--r--drivers/acpi/sleep/wakeup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/acpi/sleep/wakeup.c b/drivers/acpi/sleep/wakeup.c
index 5a594b2a3fc4b6..9c004b948354d7 100644
--- a/drivers/acpi/sleep/wakeup.c
+++ b/drivers/acpi/sleep/wakeup.c
@@ -151,6 +151,8 @@ static int __init acpi_wakeup_device_init(void)
{
struct list_head * node, * next;
+ if (acpi_disabled)
+ return 0;
printk("ACPI wakeup devices: \n");
spin_lock(&acpi_device_lock);