summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/ac.c
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>2006-08-15 07:37:22 +0200
committerLen Brown <len.brown@intel.com>2006-08-16 05:16:43 +0200
commit4d8316d5ea4dcf0bf15d8a06d539ed7c99e9cfbe (patch)
tree41fb896080563444bfdf047d56946d775b4f74a6 /drivers/acpi/ac.c
parentACPI: fix kfree in i2c_ec error path (diff)
downloadlinux-4d8316d5ea4dcf0bf15d8a06d539ed7c99e9cfbe.tar.xz
linux-4d8316d5ea4dcf0bf15d8a06d539ed7c99e9cfbe.zip
ACPI: fix boot with acpi=off
Fix acpi_ac/battery boot with acpi=off Signed-off-by: Pavel Machek <pavel@suse.cz> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/ac.c')
-rw-r--r--drivers/acpi/ac.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/acpi/ac.c b/drivers/acpi/ac.c
index 96309b9660da..11abc7bf777e 100644
--- a/drivers/acpi/ac.c
+++ b/drivers/acpi/ac.c
@@ -285,6 +285,8 @@ static int __init acpi_ac_init(void)
{
int result;
+ if (acpi_disabled)
+ return -ENODEV;
acpi_ac_dir = acpi_lock_ac_dir();
if (!acpi_ac_dir)