From 676d91bc6972b8fe9d2dfa49960c917e80f8f8a8 Mon Sep 17 00:00:00 2001 From: Eduardo Habkost Date: Tue, 4 Mar 2008 16:59:48 -0300 Subject: [PATCH] ACPI: thermal: Compile without CONFIG_DMI Add a macro for thermal_dmi_table to allow the driver to build if CONFIG_DMI is not set. Signed-off-by: Eduardo Habkost Signed-off-by: Mark McLoughlin --- drivers/acpi/thermal.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/drivers/acpi/thermal.c b/drivers/acpi/thermal.c index 1bcecc7..f044a66 100644 --- a/drivers/acpi/thermal.c +++ b/drivers/acpi/thermal.c @@ -1785,6 +1785,11 @@ static struct dmi_system_id thermal_dmi_table[] __initdata = { }, {} }; +#else + +/* Just that the dmi_check_system() call below compiles */ +#define thermal_dmi_table NULL + #endif /* CONFIG_DMI */ static int __init acpi_thermal_init(void) -- 1.5.4.1