Skip to content

Commit

Permalink
ACPI: fix boot with acpi=off
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Pavel Machek authored and Len Brown committed Aug 16, 2006
1 parent 0ee6a17 commit 4d8316d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/acpi/ac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 3 additions & 0 deletions drivers/acpi/battery.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4d8316d

Please sign in to comment.