aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/acpi/int340x_thermal.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/acpi/int340x_thermal.c b/drivers/acpi/int340x_thermal.c
index dc3553dd59de..9dcf83682e36 100644
--- a/drivers/acpi/int340x_thermal.c
+++ b/drivers/acpi/int340x_thermal.c
@@ -14,9 +14,10 @@
14 14
15#include "internal.h" 15#include "internal.h"
16 16
17#define INT3401_DEVICE 0X01
17static const struct acpi_device_id int340x_thermal_device_ids[] = { 18static const struct acpi_device_id int340x_thermal_device_ids[] = {
18 {"INT3400"}, 19 {"INT3400"},
19 {"INT3401"}, 20 {"INT3401", INT3401_DEVICE},
20 {"INT3402"}, 21 {"INT3402"},
21 {"INT3403"}, 22 {"INT3403"},
22 {"INT3404"}, 23 {"INT3404"},
@@ -34,6 +35,10 @@ static int int340x_thermal_handler_attach(struct acpi_device *adev,
34{ 35{
35#if defined(CONFIG_INT340X_THERMAL) || defined(CONFIG_INT340X_THERMAL_MODULE) 36#if defined(CONFIG_INT340X_THERMAL) || defined(CONFIG_INT340X_THERMAL_MODULE)
36 acpi_create_platform_device(adev); 37 acpi_create_platform_device(adev);
38#elif defined(INTEL_SOC_DTS_THERMAL) || defined(INTEL_SOC_DTS_THERMAL_MODULE)
39 /* Intel SoC DTS thermal driver needs INT3401 to set IRQ descriptor */
40 if (id->driver_data == INT3401_DEVICE)
41 acpi_create_platform_device(adev);
37#endif 42#endif
38 return 1; 43 return 1;
39} 44}