diff options
author | Bob Moore <robert.moore@intel.com> | 2014-01-08 00:44:38 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-01-08 09:31:38 -0500 |
commit | 1a2c478371d6050e438a6960f0e3bf68f21a748d (patch) | |
tree | 372198f77695a3ba1baf88fa88ac051f2683b5cf /drivers/acpi | |
parent | 5d4de9af84332490fb06c8785ae03d95eaa4e8f1 (diff) |
ACPICA: Add an error message if the Debugger fails initialization.
Previously, only status was returned.
Linux kernel behaviour is not affected as the changes only apply to the
debugger which is currently not shipped in the kernel.
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/acpica/utxfinit.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/drivers/acpi/acpica/utxfinit.c b/drivers/acpi/acpica/utxfinit.c index 75efea0539c1..246ef68681f4 100644 --- a/drivers/acpi/acpica/utxfinit.c +++ b/drivers/acpi/acpica/utxfinit.c | |||
@@ -122,8 +122,16 @@ acpi_status __init acpi_initialize_subsystem(void) | |||
122 | 122 | ||
123 | /* If configured, initialize the AML debugger */ | 123 | /* If configured, initialize the AML debugger */ |
124 | 124 | ||
125 | ACPI_DEBUGGER_EXEC(status = acpi_db_initialize()); | 125 | #ifdef ACPI_DEBUGGER |
126 | return_ACPI_STATUS(status); | 126 | status = acpi_db_initialize(); |
127 | if (ACPI_FAILURE(status)) { | ||
128 | ACPI_EXCEPTION((AE_INFO, status, | ||
129 | "During Debugger initialization")); | ||
130 | return_ACPI_STATUS(status); | ||
131 | } | ||
132 | #endif | ||
133 | |||
134 | return_ACPI_STATUS(AE_OK); | ||
127 | } | 135 | } |
128 | 136 | ||
129 | ACPI_EXPORT_SYMBOL_INIT(acpi_initialize_subsystem) | 137 | ACPI_EXPORT_SYMBOL_INIT(acpi_initialize_subsystem) |