acpi: fix boot with acpi=off
PATCH 3/14 acpi: fix boot with acpi=off
From: Pavel Machek <[email protected]>
With acpi=off and acpi_ac/battery compiled into kernel, acpi breaks boot. This fixes it.
Signed-off-by Pavel Machek <[email protected]>
Cc "Brown, Len" <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/acpi/ac.c | 2 ++ drivers/acpi/battery.c | 3 +++ 2 files changed, 5 insertions(+)
drivers/acpi/ac.c renamed from drivers/acpi/ac.c~acpi-fix-boot-with-acpi=off +2 -0
@@ -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)
drivers/acpi/battery.c renamed from drivers/acpi/battery.c~acpi-fix-boot-with-acpi=off +3 -0
@@ -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 ;
_
Len Brown
AppliedApplied.
(and I did the same to acpi_sbs_init)
thanks,
-Len
Quoted 45 lines · On Tuesday 15 August 2006 01:37, [email protected] wrote:
From: Pavel Machek <[email protected]>
With acpi=off and acpi_ac/battery compiled into kernel, acpi breaks boot. This fixes it.
Signed-off-by Pavel Machek <[email protected]>Cc "Brown, Len" <[email protected]>Signed-off-by Andrew Morton <[email protected]>---
drivers/acpi/ac.c | 2 ++ drivers/acpi/battery.c | 3 +++ 2 files changed, 5 insertions(+)diff -puN drivers/acpi/ac.c~acpi-fix-boot-with-acpi=off
drivers/acpi/ac.cdrivers/acpi/ac.c renamed from drivers/acpi/ac.c~acpi-fix-boot-with-acpi=off +2
-0@@ -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)diff -puN drivers/acpi/battery.c~acpi-fix-boot-with-acpi=off
drivers/acpi/battery.cdrivers/acpi/battery.c renamed from drivers/acpi/battery.c~acpi-fix-boot-with-acpi=off +3
-0@@ -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 ;_
-
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html