summaryrefslogtreecommitdiff
path: root/backport/compat/backport-4.3.c
diff options
context:
space:
mode:
Diffstat (limited to 'backport/compat/backport-4.3.c')
-rw-r--r--backport/compat/backport-4.3.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/backport/compat/backport-4.3.c b/backport/compat/backport-4.3.c
index 2d8a5e5b..88be5720 100644
--- a/backport/compat/backport-4.3.c
+++ b/backport/compat/backport-4.3.c
@@ -16,6 +16,7 @@
#include <linux/thermal.h>
#include <linux/slab.h>
+#ifdef CONFIG_THERMAL
#if LINUX_VERSION_IS_GEQ(3,8,0)
struct backport_thermal_ops_wrapper {
old_thermal_zone_device_ops_t ops;
@@ -171,6 +172,7 @@ void backport_thermal_zone_device_unregister(struct thermal_zone_device *dev)
EXPORT_SYMBOL_GPL(backport_thermal_zone_device_unregister);
#endif /* >= 3.8.0 */
+#endif /* CONFIG_THERMAL */
static void seq_set_overflow(struct seq_file *m)
{