diff options
Diffstat (limited to 'drivers/acpi/events/evxfevnt.c')
-rw-r--r-- | drivers/acpi/events/evxfevnt.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/acpi/events/evxfevnt.c b/drivers/acpi/events/evxfevnt.c index a3d148e4d39f..4eab4f5a1004 100644 --- a/drivers/acpi/events/evxfevnt.c +++ b/drivers/acpi/events/evxfevnt.c | |||
@@ -65,6 +65,14 @@ acpi_status acpi_enable(void) | |||
65 | 65 | ||
66 | ACPI_FUNCTION_TRACE(acpi_enable); | 66 | ACPI_FUNCTION_TRACE(acpi_enable); |
67 | 67 | ||
68 | /* ACPI tables must be present */ | ||
69 | |||
70 | if (!acpi_tb_tables_loaded()) { | ||
71 | return_ACPI_STATUS(AE_NO_ACPI_TABLES); | ||
72 | } | ||
73 | |||
74 | /* Check current mode */ | ||
75 | |||
68 | if (acpi_hw_get_mode() == ACPI_SYS_MODE_ACPI) { | 76 | if (acpi_hw_get_mode() == ACPI_SYS_MODE_ACPI) { |
69 | ACPI_DEBUG_PRINT((ACPI_DB_INIT, | 77 | ACPI_DEBUG_PRINT((ACPI_DB_INIT, |
70 | "System is already in ACPI mode\n")); | 78 | "System is already in ACPI mode\n")); |