From: Bjorn Helgaas Date: Tue, 24 Mar 2009 22:49:38 +0000 (-0600) Subject: ACPI: skip DMI power state check when ACPI disabled X-Git-Tag: v2.6.30-rc1~199^2~25^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=81d0273df20edff275e2eefe6b50436af3bdf9e8;p=profile%2Fivi%2Fkernel-x86-ivi.git ACPI: skip DMI power state check when ACPI disabled This patch makes acpi_init() exit early when ACPI is disabled. This skips a DMI check that affects ACPI power management. The DMI check prints a notice that is misleading when ACPI is disabled. Signed-off-by: Bjorn Helgaas Signed-off-by: Len Brown --- diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c index 2e90410..bdeed39 100644 --- a/drivers/acpi/bus.c +++ b/drivers/acpi/bus.c @@ -869,6 +869,10 @@ static int __init acpi_init(void) } } else disable_acpi(); + + if (acpi_disabled) + return result; + /* * If the laptop falls into the DMI check table, the power state check * will be disabled in the course of device power transistion.