diff options
author | Bjorn Helgaas <bjorn.helgaas@hp.com> | 2009-03-24 18:49:38 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2009-03-27 12:49:38 -0400 |
commit | 81d0273df20edff275e2eefe6b50436af3bdf9e8 (patch) | |
tree | 2f0b38dca7d50027639c8675bba7187cb490e452 /drivers | |
parent | e60cc7a6f02598fc23c68a656fe9c263d6531ca0 (diff) |
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 <bjorn.helgaas@hp.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/acpi/bus.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c index 2e90410a3035..bdeed39c3d38 100644 --- a/drivers/acpi/bus.c +++ b/drivers/acpi/bus.c | |||
@@ -869,6 +869,10 @@ static int __init acpi_init(void) | |||
869 | } | 869 | } |
870 | } else | 870 | } else |
871 | disable_acpi(); | 871 | disable_acpi(); |
872 | |||
873 | if (acpi_disabled) | ||
874 | return result; | ||
875 | |||
872 | /* | 876 | /* |
873 | * If the laptop falls into the DMI check table, the power state check | 877 | * If the laptop falls into the DMI check table, the power state check |
874 | * will be disabled in the course of device power transistion. | 878 | * will be disabled in the course of device power transistion. |