diff options
author | Pavel Machek <pavel@ucw.cz> | 2006-08-14 22:37:22 -0700 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2006-08-15 23:16:43 -0400 |
commit | 4d8316d5ea4dcf0bf15d8a06d539ed7c99e9cfbe (patch) | |
tree | 41fb896080563444bfdf047d56946d775b4f74a6 /drivers/acpi/battery.c | |
parent | 0ee6a17389ceef65f1a86c38872fa98f08489022 (diff) | |
download | op-kernel-dev-4d8316d5ea4dcf0bf15d8a06d539ed7c99e9cfbe.zip op-kernel-dev-4d8316d5ea4dcf0bf15d8a06d539ed7c99e9cfbe.tar.gz |
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/battery.c')
-rw-r--r-- | drivers/acpi/battery.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c index 6e52217..9810e2a 100644 --- a/drivers/acpi/battery.c +++ b/drivers/acpi/battery.c @@ -757,6 +757,9 @@ static int __init acpi_battery_init(void) { int result; + if (acpi_disabled) + return -ENODEV; + acpi_battery_dir = acpi_lock_battery_dir(); if (!acpi_battery_dir) return -ENODEV; |