|
@@ -37,7 +37,7 @@
|
|
|
|
|
|
#define HEST_PFX "HEST: "
|
|
|
|
|
|
-bool hest_disable;
|
|
|
+int hest_disable;
|
|
|
EXPORT_SYMBOL_GPL(hest_disable);
|
|
|
|
|
|
/* HEST table parsing */
|
|
@@ -213,7 +213,7 @@ err:
|
|
|
|
|
|
static int __init setup_hest_disable(char *str)
|
|
|
{
|
|
|
- hest_disable = 1;
|
|
|
+ hest_disable = HEST_DISABLED;
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
@@ -232,9 +232,10 @@ void __init acpi_hest_init(void)
|
|
|
|
|
|
status = acpi_get_table(ACPI_SIG_HEST, 0,
|
|
|
(struct acpi_table_header **)&hest_tab);
|
|
|
- if (status == AE_NOT_FOUND)
|
|
|
- goto err;
|
|
|
- else if (ACPI_FAILURE(status)) {
|
|
|
+ if (status == AE_NOT_FOUND) {
|
|
|
+ hest_disable = HEST_NOT_FOUND;
|
|
|
+ return;
|
|
|
+ } else if (ACPI_FAILURE(status)) {
|
|
|
const char *msg = acpi_format_exception(status);
|
|
|
pr_err(HEST_PFX "Failed to get table, %s\n", msg);
|
|
|
rc = -EINVAL;
|
|
@@ -257,5 +258,5 @@ void __init acpi_hest_init(void)
|
|
|
pr_info(HEST_PFX "Table parsing has been initialized.\n");
|
|
|
return;
|
|
|
err:
|
|
|
- hest_disable = 1;
|
|
|
+ hest_disable = HEST_DISABLED;
|
|
|
}
|