diff options
-rw-r--r-- | drivers/acpi/bus.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c index 99d820a693a8..5c093ce01bcd 100644 --- a/drivers/acpi/bus.c +++ b/drivers/acpi/bus.c | |||
@@ -1054,18 +1054,6 @@ void __init acpi_early_init(void) | |||
1054 | goto error0; | 1054 | goto error0; |
1055 | } | 1055 | } |
1056 | 1056 | ||
1057 | /* | ||
1058 | * ACPI 2.0 requires the EC driver to be loaded and work before | ||
1059 | * the EC device is found in the namespace (i.e. before | ||
1060 | * acpi_load_tables() is called). | ||
1061 | * | ||
1062 | * This is accomplished by looking for the ECDT table, and getting | ||
1063 | * the EC parameters out of that. | ||
1064 | * | ||
1065 | * Ignore the result. Not having an ECDT is not fatal. | ||
1066 | */ | ||
1067 | status = acpi_ec_ecdt_probe(); | ||
1068 | |||
1069 | #ifdef CONFIG_X86 | 1057 | #ifdef CONFIG_X86 |
1070 | if (!acpi_ioapic) { | 1058 | if (!acpi_ioapic) { |
1071 | /* compatible (0) means level (3) */ | 1059 | /* compatible (0) means level (3) */ |
@@ -1142,6 +1130,18 @@ static int __init acpi_bus_init(void) | |||
1142 | goto error1; | 1130 | goto error1; |
1143 | } | 1131 | } |
1144 | 1132 | ||
1133 | /* | ||
1134 | * ACPI 2.0 requires the EC driver to be loaded and work before the EC | ||
1135 | * device is found in the namespace. | ||
1136 | * | ||
1137 | * This is accomplished by looking for the ECDT table and getting the EC | ||
1138 | * parameters out of that. | ||
1139 | * | ||
1140 | * Do that before calling acpi_initialize_objects() which may trigger EC | ||
1141 | * address space accesses. | ||
1142 | */ | ||
1143 | acpi_ec_ecdt_probe(); | ||
1144 | |||
1145 | status = acpi_enable_subsystem(ACPI_NO_ACPI_ENABLE); | 1145 | status = acpi_enable_subsystem(ACPI_NO_ACPI_ENABLE); |
1146 | if (ACPI_FAILURE(status)) { | 1146 | if (ACPI_FAILURE(status)) { |
1147 | printk(KERN_ERR PREFIX | 1147 | printk(KERN_ERR PREFIX |